Interface AttributesManager
- All Known Implementing Classes:
AttributesManagerEntry
- Author:
- Michal Prochazka <michalp@ics.muni.cz>, Slavek Licehammer <glory@ics.muni.cz>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String[]
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAttributeSemantics
(PerunSession sess, Facility facility, Attribute attribute) Check if value of this facility attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, Facility facility, User user, Attribute attribute) Check if value of this user-facility attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, Group group, Attribute attribute) Checks if value of this group attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, Host host, Attribute attribute) Checks if value of this host attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, Member member, Attribute attribute) Check if value of this member attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, Member member, Group group, Attribute attribute) Check if value of this member-group attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, Member member, Resource resource, Attribute attribute) Check if value of this member-resource attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, Resource resource, Attribute attribute) Check if value of this resource attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, Resource resource, Group group, Attribute attribute) Checks if value of this group-resource attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, UserExtSource ues, Attribute attribute) Checks if value of this user external source attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, User user, Attribute attribute) Check if value of this user attribute has valid semantics.void
checkAttributeSemantics
(PerunSession sess, Vo vo, Attribute attribute) Check if value of this vo attribute has valid semantics.void
checkAttributesSemantics
(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) Check if value of attributes has valid semantics.void
checkAttributesSemantics
(PerunSession sess, Facility facility, User user, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on themvoid
checkAttributesSemantics
(PerunSession sess, Facility facility, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSemantics
(PerunSession sess, Host host, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSemantics
(PerunSession sess, Member member, Group group, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSemantics
(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSemantics
(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSemantics
(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSemantics
(PerunSession sess, Member member, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on themvoid
checkAttributesSemantics
(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSemantics
(PerunSession sess, Resource resource, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSemantics
(PerunSession sess, UserExtSource ues, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSemantics
(PerunSession sess, User user, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSemantics
(PerunSession sess, Vo vo, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) Check if value of attributes has valid syntax.void
checkAttributesSyntax
(PerunSession sess, Facility facility, User user, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on themvoid
checkAttributesSyntax
(PerunSession sess, Facility facility, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, Host host, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, Member member, Group group, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, Member member, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on themvoid
checkAttributesSyntax
(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, Resource resource, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, UserExtSource ues, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, User user, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributesSyntax
(PerunSession sess, Vo vo, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.void
checkAttributeSyntax
(PerunSession sess, Facility facility, Attribute attribute) Check if value of this facility attribute has valid syntax.void
checkAttributeSyntax
(PerunSession sess, Facility facility, User user, Attribute attribute) Check if value of this user-facility attribute has valid syntax.void
checkAttributeSyntax
(PerunSession sess, Group group, Attribute attribute) Checks if value of this group attribute has valid syntaxvoid
checkAttributeSyntax
(PerunSession sess, Host host, Attribute attribute) Checks if value of this host attribute has valid syntaxvoid
checkAttributeSyntax
(PerunSession sess, Member member, Attribute attribute) Check if value of this member attribute has valid syntax.void
checkAttributeSyntax
(PerunSession sess, Member member, Group group, Attribute attribute) Check if value of this member-group attribute has valid syntax.void
checkAttributeSyntax
(PerunSession sess, Member member, Resource resource, Attribute attribute) Check if value of this member-resource attribute has valid syntax.void
checkAttributeSyntax
(PerunSession sess, Resource resource, Attribute attribute) Check if value of this resource attribute has valid syntax.void
checkAttributeSyntax
(PerunSession sess, Resource resource, Group group, Attribute attribute) Checks if value of this group-resource attribute has valid syntaxvoid
checkAttributeSyntax
(PerunSession sess, UserExtSource ues, Attribute attribute) Checks if value of this user external source attribute has valid syntaxvoid
checkAttributeSyntax
(PerunSession sess, User user, Attribute attribute) Check if value of this user attribute has valid syntax.void
checkAttributeSyntax
(PerunSession sess, Vo vo, Attribute attribute) Check if value of this vo attribute has valid syntax.void
checkNamespace
(PerunSession sess, AttributeDefinition attribute, String namespace) Determine if attribute is from specified namespace.void
checkNamespace
(PerunSession sess, List<? extends AttributeDefinition> attributes, String namespace) Determine if attributes are from specified namespace.void
convertAttributeToNonunique
(PerunSession session, int attrId) Converts attribute to non-unique.void
convertAttributeToUnique
(PerunSession session, int attrId) Converts attribute to unique.createAttribute
(PerunSession sess, AttributeDefinition attributeDefinition) Creates an attribute, the attribute is stored into the appropriate DB table according to the namespacevoid
deleteAttribute
(PerunSession sess, AttributeDefinition attributeDefinition) Deletes the attribute.void
deleteAttribute
(PerunSession sess, AttributeDefinition attributeDefinition, boolean force) Deletes the attribute.void
doTheMagic
(PerunSession sess, Member member) PRIVILEGE: Only for PerunAdmin.void
doTheMagic
(PerunSession sess, Member member, boolean trueMagic) This function takes all member-related attributes (member, user, member-resource, user-facility) and tries to fill them and set them.fillAttribute
(PerunSession sess, Facility facility, User user, Attribute attribute) This method tries to fill value of the user-facility attribute.fillAttribute
(PerunSession sess, Group group, Attribute attribute) This method tries to fill group attribute.fillAttribute
(PerunSession sess, Host host, Attribute attribute) This method tries to fill host attribute.fillAttribute
(PerunSession sess, Member member, Attribute attribute) This method tries to fill value of the member attribute.fillAttribute
(PerunSession sess, Member member, Group group, Attribute attribute) This method tries to fill value of the member-group attribute.fillAttribute
(PerunSession sess, Member member, Resource resource, Attribute attribute) This method tries to fill value of the member-resource attribute.fillAttribute
(PerunSession sess, Resource resource, Attribute attribute) This method tries to fill a value of the resource attribute.fillAttribute
(PerunSession sess, Resource resource, Group group, Attribute attribute) This method tries to fill group-resource attribute.fillAttribute
(PerunSession sess, UserExtSource ues, Attribute attribute) This method tries to fill value of the user external source attribute.fillAttribute
(PerunSession sess, User user, Attribute attribute) This method tries to fill value of the user attribute.fillAttributes
(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) This method tries to fill value of the user, member, member-resource and user-facility attributes.fillAttributes
(PerunSession sess, Facility facility, User user, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, Group group, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, Host host, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, Member member, Group group, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, Member member, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, Resource resource, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, UserExtSource ues, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes
(PerunSession sess, User user, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.getAllAttributesStartWithNameWithoutNullValue
(PerunSession sess, Group group, String startPartOfName) Get all non-empty attributes associated with the group starts with name startPartOfName.getAllAttributesStartWithNameWithoutNullValue
(PerunSession sess, Resource resource, String startPartOfName) Get all non-empty attributes associated with the resource starts with name startPartOfName.getAllNamespaces
(PerunSession sess) Returns list of all possible namespaces.getAttribute
(PerunSession sess, Facility facility, User user, String attributeName) Get particular attribute for the user on this facility.getAttribute
(PerunSession sess, Facility facility, String attributeName) Get particular attribute for the facility.getAttribute
(PerunSession sess, Group group, String attributeName) Get particular attribute for the group.getAttribute
(PerunSession sess, Host host, String attributeName) Get particular attribute for the hostgetAttribute
(PerunSession sess, Member member, Group group, String attributeName) Get particular attribute for the member in this group.getAttribute
(PerunSession sess, Member member, Resource resource, String attributeName) Get particular attribute for the member on this resource.getAttribute
(PerunSession sess, Member member, String attributeName) Get particular attribute for the member.getAttribute
(PerunSession sess, Resource resource, Group group, String attributeName) Get particular group attribute on resourcegetAttribute
(PerunSession sess, Resource resource, String attributeName) Get particular attribute for the resource.getAttribute
(PerunSession sess, UserExtSource ues, String attributeName) Get particular attribute for the user external source.getAttribute
(PerunSession sess, User user, String attributeName) Get particular attribute for the user.getAttribute
(PerunSession sess, Vo vo, String attributeName) Get particular attribute for the vo.getAttribute
(PerunSession sess, String key, String attributeName) Get particular entityless attributegetAttributeById
(PerunSession sess, Facility facility, int id) Get particular attribute for the facility.getAttributeById
(PerunSession sess, Facility facility, User user, int id) Get particular attribute for the user on this facility.getAttributeById
(PerunSession sess, Group group, int id) Get particular attribute for groupgetAttributeById
(PerunSession sess, Host host, int id) Get particular attribute for the hostgetAttributeById
(PerunSession sess, Member member, int id) Get particular attribute for the member.getAttributeById
(PerunSession sess, Member member, Group group, int id) Get particular attribute for the member in this group.getAttributeById
(PerunSession sess, Member member, Resource resource, int id) Get particular attribute for the member on this resource.getAttributeById
(PerunSession sess, Resource resource, int id) Get particular attribute for the resource.getAttributeById
(PerunSession sess, Resource resource, Group group, int id) Get particular group attribute on this resourcegetAttributeById
(PerunSession sess, UserExtSource ues, int id) Get particular attribute for user external sourcegetAttributeById
(PerunSession sess, User user, int id) Get particular attribute for the user.getAttributeById
(PerunSession sess, Vo vo, int id) Get particular attribute for the vo.getAttributeDefinition
(PerunSession sess, String attributeName) Get attribute definition (attribute without defined value).getAttributeDefinitionById
(PerunSession sess, int id) Get attribute definition (attribute without defined value).getAttributePolicyCollections
(PerunSession sess, int attributeId) Gets attribute policy collections for an attribute definition with given id.getAttributeRights
(PerunSession sess, int attributeId) Deprecated.getAttributeRules
(PerunSession sess, int attributeId) Gets attribute rules containing policy collections and critical actions for an attribute definition with given idgetAttributes
(PerunSession sess, Facility facility) Get all non-empty attributes associated with the facility.getAttributes
(PerunSession sess, Facility facility, Resource resource, User user, Member member) Get all non-empty member, user, member-resource and user-facility attributes.getAttributes
(PerunSession sess, Facility facility, User user) Get all non-empty attributes associated with the user on the facility.getAttributes
(PerunSession sess, Facility facility, List<String> attrNames) Get all attributes associated with the facility which have name in list attrNames (empty too).getAttributes
(PerunSession sess, Group group) Get all non-empty attributes associated with the group.getAttributes
(PerunSession sess, Group group, List<String> attrNames) Get all attributes associated with the group which have name in list attrNames (empty too).getAttributes
(PerunSession sess, Host host) Get all non-empty attributes associated with the hostgetAttributes
(PerunSession sess, Host host, List<String> attrNames) Get all attributes associated with the host which have name in list attrNames (empty too).getAttributes
(PerunSession sess, Member member) Get all non-empty attributes associated with the member.getAttributes
(PerunSession sess, Member member, boolean workWithUserAttributes) Get all non-empty attributes associated with the member and if workWithUserAttributes is true, get all non-empty attributes associated with user, who is this member.getAttributes
(PerunSession sess, Member member, Group group) Get all non-empty attributes associated with the member in the group.getAttributes
(PerunSession sess, Member member, Group group, List<String> attrNames) Get all attributes (empty and virtual too)associated with the member in the group which have name in list attrNames.getAttributes
(PerunSession sess, Member member, Group group, List<String> attrNames, boolean workWithUserAttributes) Get all attributes associated with the member in the group which have name in list attrNames (empty too).getAttributes
(PerunSession sess, Member member, Resource resource) Get all non-empty attributes associated with the member on the resource.getAttributes
(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) Gets all non-empty attributes associated with the member on the resource and if workWithUserAttributes is true, gets also all non-empty user, user-facility and member attributes.getAttributes
(PerunSession sess, Member member, Resource resource, List<String> attrNames, boolean workWithUserAttributes) Gets selected non-empty attributes associated with the member and the resource.getAttributes
(PerunSession sess, Member member, List<String> attrNames) Get all attributes associated with the member which have name in list attrNames (empty too).getAttributes
(PerunSession sess, Member member, List<String> attrNames, boolean workWithUserAttributes) Get all attributes associated with the member which have name in list attrNames (empty too) Virtual attributes too.getAttributes
(PerunSession sess, Resource resource) Get all non-empty attributes associated with the resource.getAttributes
(PerunSession sess, Resource resource, Group group) Get all non-empty attributes associated with the group on resourcegetAttributes
(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) Get all non-empty attributes associated with the group and resource.getAttributes
(PerunSession sess, Resource resource, Group group, Member member, List<String> attrNames) Get all attributes by the list of attrNames if they are in one of these namespaces: - member - group - member-group - resource - member-resource - group-resource - user (get from member object) - facility (get from resource object) - user-facilitygetAttributes
(PerunSession sess, Resource resource, Group group, List<String> attrNames, boolean workWithGroupAttributes) Get all attributes associated with the group and the resource which have their name in list attrNames (empty too).getAttributes
(PerunSession sess, Resource resource, List<String> attrNames) Get all attributes associated with the resource which have name in list attrNames (empty too).getAttributes
(PerunSession sess, User user) Get all non-empty attributes associated with the user.getAttributes
(PerunSession sess, UserExtSource ues) Get all non-empty attributes associated with the UserExtSource.getAttributes
(PerunSession sess, UserExtSource ues, List<String> attrNames) Get all attributes associated with the userExtSource which have name in list attrNames (empty too).getAttributes
(PerunSession sess, User user, List<String> attrNames) Get all attributes associated with the user which have name in list attrNames (empty too).getAttributes
(PerunSession sess, Vo vo) Get all non-empty attributes associated with the vo.getAttributes
(PerunSession sess, Vo vo, List<String> attrNames) Get all attributes associated with the vo which have name in list attrNames (empty too).getAttributes
(PerunSession sess, String key) Get all entityless attributes with subject equaled String keygetAttributesByAttributeDefinition
(PerunSession sess, AttributeDefinition attributeDefinition) Returns all attributes with not-null value which fits the attributeDefinition.Get all attributes definition (attribute without defined value).getAttributesDefinition
(PerunSession sess, List<String> listOfAttributesNames) From listOfAttributesNames get list of attributeDefinitionsgetAttributesDefinitionByNamespace
(PerunSession sess, String namespace) Get attributes definition (attribute without defined value) with specified namespace.getAttributesDefinitionWithRights
(PerunSession sess, List<PerunBean> entities) Get all (for entities) attributeDefinitions which user has right to READ them and fill attribute writable (if user has also right to WRITE them).getEntitylessAttributes
(PerunSession sess, String attrName) Get all entityless attributes with attributeNamegetEntitylessAttributesWithKeys
(PerunSession sess, String attrName) Get entityless attributes mapped by their keys.getEntitylessAttributesWithKeys
(PerunSession sess, String attrName, List<String> keys) Get entityless attributes mapped by their keys.getEntitylessKeys
(PerunSession sess, AttributeDefinition attributeDefinition) Returns list of Keys which fits the attributeDefinition.getFriendlyNameFromAttributeName
(String attributeName) Gets the friendly name from the attribute name.Returns list of definitions of IdP attributes that are filled to fedInfogetLogins
(PerunSession sess, User user) Get all attributes with user's logins.getModulesDependenciesGraph
(PerunSession session, GraphTextFormat format) Generates graph describing attribute modules dependencies.getModulesDependenciesGraph
(PerunSession session, GraphTextFormat format, String attributeName) Generates graph describing dependencies for given AttributeDefinition.getNamespaceFromAttributeName
(String attributeName) Gets the namespace from the attribute name.getRequiredAttributes
(PerunSession sess, Facility facility) Get facility attributes which are required by all services which are related to this facility.getRequiredAttributes
(PerunSession sess, Facility facility, User user) Get user-facility attributes which are required by services which are related to this user-facility.getRequiredAttributes
(PerunSession sess, Member member, boolean workWithUserAttributes) Get member attributes which are required by services which are relater to this member.getRequiredAttributes
(PerunSession sess, Member member, Group group, boolean workWithUserAttributes) Get member, member-group attributes which are required by services which are relater to this member.getRequiredAttributes
(PerunSession sess, Member member, Resource resource) Get member-resource attributes which are required by services which are relater to this member-resource.getRequiredAttributes
(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) If workWithUserAttribute is false => Get member-resource attributes which are required by services which are relater to this member-resource.getRequiredAttributes
(PerunSession sess, Resource resource) Get resource attributes which are required by services which is relatod to this resource.getRequiredAttributes
(PerunSession sess, Resource resource, Service service, List<Member> members) Get member attributes which are required by service for each member in list of members.getRequiredAttributes
(PerunSession sess, Service service, Facility facility) Get facility attributes which are required by the service.getRequiredAttributes
(PerunSession sess, Service service, Facility facility, List<User> users) Get user-facility attributes which are required by the service for each user in list of users.getRequiredAttributes
(PerunSession sess, Service service, Group group) Get group required attributes for the servicegetRequiredAttributes
(PerunSession sess, Service service, Host host) Get host required attributes for the servicegetRequiredAttributes
(PerunSession sess, Service service, Member member) Get member attributes which are required by the service.getRequiredAttributes
(PerunSession sess, Service service, Member member, Group group) Get member-group attributes which are required by the service.getRequiredAttributes
(PerunSession sess, Service service, Member member, Group group, boolean workWithUserAttributes) PRIVILEGE: Get only those required attributes principal has access to.getRequiredAttributes
(PerunSession sess, Service service, Member member, Resource resource) Get member-resource attributes which are required by the service.getRequiredAttributes
(PerunSession sess, Service service, Member member, Resource resource, boolean workWithUserAttributes) PRIVILEGE: Get only those required attributes principal has access to.getRequiredAttributes
(PerunSession sess, Service service, Resource resource) Get resource attributes which are required by the service.getRequiredAttributes
(PerunSession sess, Service service, Resource resource, Group group) Get group-resource attributes required for the service.getRequiredAttributes
(PerunSession sess, Service service, Resource resource, Group group, boolean workWithGroupAttributes) Get group-resource attributes required for the service.getRequiredAttributes
(PerunSession sess, Service service, Resource resource, Group group, Member member, boolean workWithUserAttributes) Get member, member-resource and member-group attributes required by the specified service.getRequiredAttributes
(PerunSession sess, Service service, Resource resource, List<Member> members) Get member-resource attributes which are required by service for each member in list of members.getRequiredAttributes
(PerunSession sess, Service service, Resource resource, List<Member> members, boolean workWithUserAttributes) Get member-resource, member, user-facility and user attributes which are required by service for each member in list of members.getRequiredAttributes
(PerunSession sess, Service service, Vo vo) Get vo attributes which are required by the service.getRequiredAttributes
(PerunSession sess, Service service, List<User> users) Get user attributes which are required by the service for each user in list of users.getRequiredAttributes
(PerunSession sess, User user) Get user attributes which are required by services which are relater to this user.getRequiredAttributes
(PerunSession sess, List<Service> services, Facility facility) Get facility attributes which are required by the services.getRequiredAttributes
(PerunSession sess, List<Service> services, Resource resource) Get resource attributes which are required by the services.getRequiredAttributesDefinition
(PerunSession sess, Service service) Get all attributes which are required by service.getResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, Resource resource, User user, Member member) Get member, user, member-resource and user-facility attributes which are required by services which are defined on "resourceToGetServicesFrom" resource.getResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, User user) Get user-facility attributes which are required by services which are defined on specified resourcegetResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Group group) Get group attributes which are required by services defined on specified resourcegetResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Host host) Get host attributes which are required by services defined on specified resourcegetResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Member member) Get member attributes which are required by services defined on specified resourcegetResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group) Get member-group attributes which are required by services defined on specified resource Services are known from the resourceToGetServicesFrom.getResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group, boolean workWithUserAttributes) Get member-group attributes which are required by services defined on specified resource and if workWithUserAttributes is true also user and member attributes.getResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource) Get member-resource attributes which are required by services which are defined on "resourceToGetServicesFrom" resource.getResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource, boolean workWithUserAttributes) Get member-resource attributes which are required by services and if workWithUserAttributes is true also user, user-facility and member attributes.getResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group) Get group-resource attributes which are required by services defined on specified resourcegetResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group, boolean workWithGroupAttributes) Get group-resource attributes which are required by services defined on specified resource Get also group attributes, if workWithGroupAttributes is true.getResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group, Member member, boolean workWithUserAttributes) Get member-group and member-resource attributes required by the services specified on resource Get also user, member, user-facility attributes, if workWithUserAttributes is true.getResourceRequiredAttributes
(PerunSession sess, Resource resourceToGetServicesFrom, User user) Get user attributes which are required by services defined on specified resourceboolean
isCoreAttribute
(PerunSession sess, AttributeDefinition attribute) Determine if attribute is core attribute.boolean
isCoreManagedAttribute
(PerunSession sess, AttributeDefinition attribute) Determine if attribute is core-managed attribute.boolean
isFromNamespace
(PerunSession sess, AttributeDefinition attribute, String namespace) Determine if attribute is from specified namespace.boolean
isOptAttribute
(PerunSession sess, AttributeDefinition attribute) Determine if attribute is optional (opt) attribute.void
removeAllAttributes
(PerunSession sess, Facility facility) Unset all attributes for the facility.void
removeAllAttributes
(PerunSession sess, Facility facility, boolean removeAlsoUserFacilityAttributes) Unset all attributes for the facility.void
removeAllAttributes
(PerunSession sess, Facility facility, User user) Unset all attributes for the user on the facility.void
removeAllAttributes
(PerunSession sess, Group group) Unset all attributes for the group.void
removeAllAttributes
(PerunSession sess, Host host) Unset all attributes for the hostvoid
removeAllAttributes
(PerunSession sess, Member member) Unset all attributes for the member.void
removeAllAttributes
(PerunSession sess, Member member, Group group) Unset all attributes for the member in the group.void
removeAllAttributes
(PerunSession sess, Member member, Resource resource) Unset all attributes for the member on the resource.void
removeAllAttributes
(PerunSession sess, Resource resource) Unset all attributes for the resource.void
removeAllAttributes
(PerunSession sess, Resource resource, Group group) Remove all attributes for group on resourcevoid
removeAllAttributes
(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) Unset all attributes for the group and resource.void
removeAllAttributes
(PerunSession sess, User user) Unset all attributes for the user.void
removeAllAttributes
(PerunSession sess, UserExtSource ues) Unset all attributes for the user external source.void
removeAllAttributes
(PerunSession sess, Vo vo) Unset all attributes for the vo.void
removeAttribute
(PerunSession sess, Facility facility, AttributeDefinition attribute) Unset particular attribute for the facility.void
removeAttribute
(PerunSession sess, Facility facility, User user, AttributeDefinition attribute) Unset particular attribute for the user on the facility.void
removeAttribute
(PerunSession sess, Group group, AttributeDefinition attribute) Unset particular attribute for the group.void
removeAttribute
(PerunSession sess, Host host, AttributeDefinition attribute) Unset particular attribute for the host.void
removeAttribute
(PerunSession sess, Member member, AttributeDefinition attribute) Unset particular attribute for the member.void
removeAttribute
(PerunSession sess, Member member, Group group, AttributeDefinition attribute) Unset particular attribute for the member in the group.void
removeAttribute
(PerunSession sess, Member member, Resource resource, AttributeDefinition attribute) Unset particular attribute for the member on the resource.void
removeAttribute
(PerunSession sess, Resource resource, AttributeDefinition attribute) Unset particular attribute for the resource.void
removeAttribute
(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) Unset particular group attribute on the resourcevoid
removeAttribute
(PerunSession sess, UserExtSource ues, AttributeDefinition attribute) Unset particular attribute for the user external source.void
removeAttribute
(PerunSession sess, User user, AttributeDefinition attribute) Unset particular attribute for the user.void
removeAttribute
(PerunSession sess, Vo vo, AttributeDefinition attribute) Unset particular attribute for the vo.void
removeAttribute
(PerunSession sess, String key, AttributeDefinition attribute) Unset particular entityless attribute with subject equals key.void
removeAttributes
(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<? extends AttributeDefinition> attributes) Unset the member, user, member-group, member-resource and user-facility attributes.void
removeAttributes
(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<? extends AttributeDefinition> attributes) Unset the member, user, member-resource and user-facility attributes.void
removeAttributes
(PerunSession sess, Facility facility, User user, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, Facility facility, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, Group group, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, Host host, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, Member member, boolean workWithUserAttributes, List<? extends AttributeDefinition> attributes) Unset all non-empty attributes associated with the member and if workWithUserAttributes is true, unset all non-empty attributes associated with user, who is this member.void
removeAttributes
(PerunSession sess, Member member, Group group, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, Member member, Group group, List<? extends AttributeDefinition> attributes, boolean workWithUserAttributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, Member member, Resource resource, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, Member member, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, Resource resource, Group group, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, Resource resource, Group group, List<? extends AttributeDefinition> attributes, boolean workWithGroupAttributes) Unset the group-resource attributes.void
removeAttributes
(PerunSession sess, Resource resource, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, UserExtSource ues, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, User user, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
removeAttributes
(PerunSession sess, Vo vo, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.void
setAttribute
(PerunSession sess, Facility facility, Attribute attribute) Store the particular attribute associated with the facility.void
setAttribute
(PerunSession sess, Facility facility, User user, Attribute attribute) Store the attribute associated with the facility and user combination.void
setAttribute
(PerunSession sess, Group group, Attribute attribute) Store the particular attribute associated with the group.void
setAttribute
(PerunSession sess, Host host, Attribute attribute) Store the attribute associated with the host.void
setAttribute
(PerunSession sess, Member member, Attribute attribute) Store the particular attribute associated with the member.void
setAttribute
(PerunSession sess, Member member, Group group, Attribute attribute) Store the particular attribute associated with the group and member combination.void
setAttribute
(PerunSession sess, Member member, Resource resource, Attribute attribute) Store the particular attribute associated with the resource and member combination.void
setAttribute
(PerunSession sess, Resource resource, Attribute attribute) Store the particular attribute associated with the resource.void
setAttribute
(PerunSession sess, Resource resource, Group group, Attribute attribute) Stores attribute associated with group resource combination.void
setAttribute
(PerunSession sess, UserExtSource ues, Attribute attribute) Store the attribute associated with the user external source.void
setAttribute
(PerunSession sess, User user, Attribute attribute) Store the attribute associated with the user.void
setAttribute
(PerunSession sess, Vo vo, Attribute attribute) Store the particular attribute associated with the vo.void
setAttribute
(PerunSession sess, String key, Attribute attribute) Stores entityless attribute (associateed witk string key).void
setAttributeActionCriticality
(PerunSession sess, AttributeDefinition attr, AttributeAction action, boolean critical, boolean global) Marks the action on attribute as critical, which may require additional authentication of user performing that action on attribute.void
setAttributePolicyCollections
(PerunSession sess, List<AttributePolicyCollection> policyCollections) Deletes old attribute policy collections and sets all new attribute policy collections.void
setAttributeRights
(PerunSession sess, List<AttributeRights> rights) Deprecated.void
setAttributes
(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<Attribute> attributes) Store the member, user, member-group, member-resource and user-facility attributes.void
setAttributes
(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) Store the member, user, member-resource and user-facility attributes.void
setAttributes
(PerunSession sess, Facility facility, User user, List<Attribute> attributes) Store the attributes associated with the facility and user combination.void
setAttributes
(PerunSession sess, Facility facility, List<Attribute> attributes) Store the attributes associated with the facility.void
setAttributes
(PerunSession sess, Group group, List<Attribute> attributes) Store the attributes associated with the group.void
setAttributes
(PerunSession sess, Host host, List<Attribute> attributes) Store the attributes associated with the host.void
setAttributes
(PerunSession sess, Member member, Group group, List<Attribute> attributes) Store the attributes associated with the member and group combination.void
setAttributes
(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) Store the attributes associated with the member and group combination.void
setAttributes
(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) Store the attributes associated with the resource and member combination.void
setAttributes
(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) Store the attributes associated with the resource and member combination.void
setAttributes
(PerunSession sess, Member member, List<Attribute> attributes) Store the attributes associated with the resource.void
setAttributes
(PerunSession sess, Member member, List<Attribute> attributes, boolean workWithUserAttributes) Store the attributes associated with member and user (which we get from this member) if workWithUserAttributes is true.void
setAttributes
(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) Store the attributes associated with the group on resource.void
setAttributes
(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttributes) Store the attributes associated with group and resource if workWithUserAttributes is true then also from group itself.void
setAttributes
(PerunSession sess, Resource resource, List<Attribute> attributes) Store the attributes associated with the resource.void
setAttributes
(PerunSession sess, UserExtSource ues, List<Attribute> attributes) Store the attributes associated with the user external source.void
setAttributes
(PerunSession sess, User user, List<Attribute> attributes) Store the attributes associated with the user.void
setAttributes
(PerunSession sess, Vo vo, List<Attribute> attributes) Store the attributes associated with the vo.updateAttributeDefinition
(PerunSession perunSession, AttributeDefinition attributeDefinition) Updates AttributeDefinition.
-
Field Details
-
NS_FACILITY_ATTR
- See Also:
-
NS_FACILITY_ATTR_DEF
- See Also:
-
NS_FACILITY_ATTR_OPT
- See Also:
-
NS_FACILITY_ATTR_CORE
- See Also:
-
NS_FACILITY_ATTR_VIRT
- See Also:
-
NS_RESOURCE_ATTR
- See Also:
-
NS_RESOURCE_ATTR_DEF
- See Also:
-
NS_RESOURCE_ATTR_OPT
- See Also:
-
NS_RESOURCE_ATTR_CORE
- See Also:
-
NS_RESOURCE_ATTR_VIRT
- See Also:
-
NS_MEMBER_RESOURCE_ATTR
- See Also:
-
NS_MEMBER_RESOURCE_ATTR_DEF
- See Also:
-
NS_MEMBER_RESOURCE_ATTR_OPT
- See Also:
-
NS_MEMBER_RESOURCE_ATTR_VIRT
- See Also:
-
NS_MEMBER_GROUP_ATTR
- See Also:
-
NS_MEMBER_GROUP_ATTR_DEF
- See Also:
-
NS_MEMBER_GROUP_ATTR_OPT
- See Also:
-
NS_MEMBER_GROUP_ATTR_VIRT
- See Also:
-
NS_MEMBER_ATTR_CORE
- See Also:
-
NS_MEMBER_ATTR
- See Also:
-
NS_MEMBER_ATTR_DEF
- See Also:
-
NS_MEMBER_ATTR_OPT
- See Also:
-
NS_MEMBER_ATTR_VIRT
- See Also:
-
NS_USER_FACILITY_ATTR
- See Also:
-
NS_USER_FACILITY_ATTR_DEF
- See Also:
-
NS_USER_FACILITY_ATTR_OPT
- See Also:
-
NS_USER_FACILITY_ATTR_VIRT
- See Also:
-
NS_USER_ATTR
- See Also:
-
NS_USER_ATTR_CORE
- See Also:
-
NS_USER_ATTR_DEF
- See Also:
-
NS_USER_ATTR_OPT
- See Also:
-
NS_USER_ATTR_VIRT
- See Also:
-
NS_VO_ATTR
- See Also:
-
NS_VO_ATTR_DEF
- See Also:
-
NS_VO_ATTR_OPT
- See Also:
-
NS_VO_ATTR_CORE
- See Also:
-
NS_VO_ATTR_VIRT
- See Also:
-
NS_GROUP_ATTR
- See Also:
-
NS_GROUP_ATTR_DEF
- See Also:
-
NS_GROUP_ATTR_OPT
- See Also:
-
NS_GROUP_ATTR_CORE
- See Also:
-
NS_GROUP_ATTR_VIRT
- See Also:
-
NS_HOST_ATTR
- See Also:
-
NS_HOST_ATTR_CORE
- See Also:
-
NS_HOST_ATTR_DEF
- See Also:
-
NS_HOST_ATTR_OPT
- See Also:
-
NS_HOST_ATTR_VIRT
- See Also:
-
NS_GROUP_RESOURCE_ATTR
- See Also:
-
NS_GROUP_RESOURCE_ATTR_DEF
- See Also:
-
NS_GROUP_RESOURCE_ATTR_OPT
- See Also:
-
NS_GROUP_RESOURCE_ATTR_VIRT
- See Also:
-
NS_ENTITYLESS_ATTR
- See Also:
-
NS_ENTITYLESS_ATTR_DEF
- See Also:
-
NS_ENTITYLESS_ATTR_OPT
- See Also:
-
NS_UES_ATTR
- See Also:
-
NS_UES_ATTR_CORE
- See Also:
-
NS_UES_ATTR_DEF
- See Also:
-
NS_UES_ATTR_OPT
- See Also:
-
NS_UES_ATTR_VIRT
- See Also:
-
ORACLE_ARRAY_OF_NUMBERS
- See Also:
-
ORACLE_ARRAY_OF_STRINGS
- See Also:
-
LOGIN_NAMESPACE
- See Also:
-
ATTRIBUTES_REGEXP
- See Also:
-
ENTITY_TYPES
-
-
Method Details
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, Facility facility, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Check if value of this facility attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionfacility
- facility for which you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exists in underlying data sourceWrongAttributeAssignmentException
- if attribute isn't facility attributeWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsAttributeNotExistsException
- if given attribute does not exist
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, Vo vo, Attribute attribute) throws PrivilegeException, VoNotExistsException, WrongAttributeAssignmentException, AttributeNotExistsException, WrongReferenceAttributeValueException Check if value of this vo attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionvo
- vo for which you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenVoNotExistsException
- if the vo doesn't exists in underlying data sourceWrongAttributeAssignmentException
- if attribute isn't vo attributeWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsAttributeNotExistsException
- if given attribute does not exist
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Check if value of this resource attribute has valid semantics.- Parameters:
sess
- perun sessionresource
- resource for which you want to check validity of attributeattribute
- attribute to checkPRIVILEGE: Check attribute only when principal has access to write on it.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exists in underlying data sourceWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsWrongAttributeAssignmentException
- if attribute isn't resource attributeAttributeNotExistsException
- if given attribute does not exist
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, Member member, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, MemberResourceMismatchException Check if value of this member-resource attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionmember
- member for which (and for specified resource) you want to check validity of attributeresource
- resource for which (and for specified member) you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exists in underlying data sourceWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsWrongAttributeAssignmentException
- if attribute isn't member-resource attributeMemberNotExistsException
- if specified member does not existAttributeNotExistsException
- if given attribute does not existMemberResourceMismatchException
- if member and resource are not in the same VO
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, Member member, Group group, Attribute attribute) throws PrivilegeException, GroupNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberGroupMismatchException Check if value of this member-group attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessiongroup
- group for which (and for specified member) you want to check validity of attributemember
- member for which (and for specified group) you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenWrongAttributeAssignmentException
- if attribute isn't member-resource attributeGroupNotExistsException
- if specified group does not existMemberNotExistsException
- if specified member does not existAttributeNotExistsException
- if given attribute does not existMemberGroupMismatchException
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, Member member, Attribute attribute) throws PrivilegeException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Check if value of this member attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionmember
- member for which (and for specified resource) you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsWrongAttributeAssignmentException
- if attribute isn't member-resource attributeMemberNotExistsException
- if specified member does not existAttributeNotExistsException
- if given attribute does not exist
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, Facility facility, User user, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Check if value of this user-facility attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionfacility
- facility for which (and for specified user) you want to check validity of attributeuser
- user for which (and for specified facility) you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exists in underlying data sourceUserNotExistsException
- if the user doesn't exists in underlying data sourceWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsWrongAttributeAssignmentException
- if attribute isn't user-facility attributeAttributeNotExistsException
- if given attribute does not exist
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, User user, Attribute attribute) throws PrivilegeException, UserNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Check if value of this user attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionuser
- user for which (and for specified facility) you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsWrongAttributeAssignmentException
- if attribute isn't user-facility attributeUserNotExistsException
- if the user doesn't exists in underlying data sourceAttributeNotExistsException
- if given attribute does not exist
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, Host host, Attribute attribute) throws PrivilegeException, WrongAttributeAssignmentException, AttributeNotExistsException, HostNotExistsException Checks if value of this host attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionhost
- host for which attribute validity is checked- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeAssignmentException
- if the attribute isn't host attributeAttributeNotExistsException
- if given attribute doesn't existHostNotExistsException
- if specified host doesn't exist
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, Group group, Attribute attribute) throws PrivilegeException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, GroupNotExistsException Checks if value of this group attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessiongroup
- group for which attribute validity is checked- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeAssignmentException
- if the attribute isn't group attributeWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsAttributeNotExistsException
- if given attribute doesn't existGroupNotExistsException
- if specified group doesn't exist
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, Resource resource, Group group, Attribute attribute) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException, WrongReferenceAttributeValueException Checks if value of this group-resource attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionresource
- resource which attr you want checkgroup
- group which attr you want to checkattribute
- attribute to be checked- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsAttributeNotExistsException
- if given attribute doesn't existResourceNotExistsException
- if the resource doesn't exist in underlying data sourceGroupNotExistsException
- if the group doesn't exist in underlying data sourceWrongAttributeAssignmentException
- if the attribute isn't group-resource attributeGroupResourceMismatchException
- if group and resource are not in the same VO
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSession sess, UserExtSource ues, Attribute attribute) throws PrivilegeException, WrongAttributeAssignmentException, AttributeNotExistsException, UserExtSourceNotExistsException Checks if value of this user external source attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionues
- user external source for which attribute validity is checked- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeAssignmentException
- if the attribute isn't UserExtSource attributeAttributeNotExistsException
- if given attribute doesn't existUserExtSourceNotExistsException
- if specified user external source doesn't exist
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, Facility facility, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Check if value of this facility attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionfacility
- facility for which you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exist in underlying data sourceWrongAttributeAssignmentException
- if attribute isn't facility attributeWrongAttributeValueException
- if the attribute value has wrong/illegal syntaxAttributeNotExistsException
- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, Vo vo, Attribute attribute) throws PrivilegeException, VoNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Check if value of this vo attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionvo
- vo for which you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenVoNotExistsException
- if the vo doesn't exist in underlying data sourceWrongAttributeAssignmentException
- if attribute isn't vo attributeWrongAttributeValueException
- if the attribute value has wrong/illegal syntaxAttributeNotExistsException
- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Check if value of this resource attribute has valid syntax.- Parameters:
sess
- perun sessionresource
- resource for which you want to check validity of attributeattribute
- attribute to checkPRIVILEGE: Check attribute only when principal has access to write on it.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exist in underlying data sourceWrongAttributeValueException
- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException
- if attribute isn't resource attributeAttributeNotExistsException
- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, Member member, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberResourceMismatchException Check if value of this member-resource attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionmember
- member for which (and for specified resource) you want to check validity of attributeresource
- resource for which (and for specified member) you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exist in underlying data sourceWrongAttributeValueException
- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException
- if attribute isn't member-resource attributeAttributeNotExistsException
- if the attribute does not exist in underlying data sourceMemberNotExistsException
- if the member doesn't exist in the underlying data sourceMemberResourceMismatchException
- if member and resource are not in the same VO
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, Member member, Group group, Attribute attribute) throws PrivilegeException, GroupNotExistsException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberGroupMismatchException Check if value of this member-group attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessiongroup
- group for which (and for specified member) you want to check validity of attributemember
- member for which (and for specified group) you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenWrongAttributeValueException
- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException
- if attribute isn't member-group attributeGroupNotExistsException
- if the group doesn't exist in the underlying data sourceMemberNotExistsException
- if the member doesn't exist in the underlying data sourceAttributeNotExistsException
- if the attribute does not exist in underlying data sourceMemberGroupMismatchException
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, Member member, Attribute attribute) throws PrivilegeException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Check if value of this member attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionmember
- member for which (and for specified resource) you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenWrongAttributeValueException
- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException
- if attribute isn't member attributeMemberNotExistsException
- if the member doesn't exist in the underlying data sourceAttributeNotExistsException
- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, Facility facility, User user, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Check if value of this user-facility attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionfacility
- facility for which (and for specified user) you want to check validity of attributeuser
- user for which (and for specified facility) you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exist in underlying data sourceUserNotExistsException
- if the user doesn't exist in underlying data sourceWrongAttributeValueException
- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException
- if attribute isn't user-facility attributeAttributeNotExistsException
- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, User user, Attribute attribute) throws PrivilegeException, UserNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Check if value of this user attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionuser
- user for which (and for specified facility) you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenWrongAttributeValueException
- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException
- if attribute isn't user attributeUserNotExistsException
- if the user doesn't exist in underlying data sourceAttributeNotExistsException
- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, Host host, Attribute attribute) throws PrivilegeException, WrongAttributeAssignmentException, AttributeNotExistsException, HostNotExistsException, WrongAttributeValueException Checks if value of this host attribute has valid syntaxPRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionhost
- host for which attribute validity is checked- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeAssignmentException
- if the attribute isn't host attributeAttributeNotExistsException
- if given attribute doesn't existHostNotExistsException
- if specified host doesn't existWrongAttributeValueException
- if the attribute value has wrong/illegal syntax
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, Group group, Attribute attribute) throws PrivilegeException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, GroupNotExistsException Checks if value of this group attribute has valid syntaxPRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessiongroup
- group for which attribute validity is checked- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeValueException
- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException
- if the attribute isn't group attributeAttributeNotExistsException
- if given attribute doesn't existGroupNotExistsException
- if specified group doesn't exist
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, Resource resource, Group group, Attribute attribute) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, GroupResourceMismatchException Checks if value of this group-resource attribute has valid syntaxPRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionresource
- resource which attr you want checkgroup
- group which attr you want to checkattribute
- attribute to be checked- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionAttributeNotExistsException
- if given attribute doesn't existResourceNotExistsException
- if the resource doesn't exist in underlying data sourceGroupNotExistsException
- if the group doesn't exist in underlying data sourceWrongAttributeValueException
- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException
- if the attribute isn't group-resource attributeGroupResourceMismatchException
- if group and resource are not in the same VO
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSession sess, UserExtSource ues, Attribute attribute) throws PrivilegeException, WrongAttributeAssignmentException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeValueException Checks if value of this user external source attribute has valid syntaxPRIVILEGE: Check attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionues
- user external source for which attribute validity is checked- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeAssignmentException
- if the attribute isn't UserExtSource attributeAttributeNotExistsException
- if given attribute doesn't existUserExtSourceNotExistsException
- if specified user external source doesn't existWrongAttributeValueException
- if the attribute value has wrong/illegal syntax
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Facility facility, List<Attribute> attributes) throws PrivilegeException, FacilityNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Throws:
WrongReferenceAttributeValueException
- if any of attributes values has wrong/illegal semanticsPrivilegeException
FacilityNotExistsException
WrongAttributeAssignmentException
AttributeNotExistsException
- See Also:
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, GroupNotExistsException, MemberGroupMismatchException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Parameters:
workWithUserAttributes
- method can process also user and member attributes (user is automatically get from member) !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!- Throws:
PrivilegeException
MemberNotExistsException
WrongAttributeAssignmentException
WrongReferenceAttributeValueException
AttributeNotExistsException
GroupNotExistsException
MemberGroupMismatchException
- See Also:
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Vo vo, List<Attribute> attributes) throws PrivilegeException, VoNotExistsException, WrongAttributeAssignmentException, AttributeNotExistsException, WrongReferenceAttributeValueException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Throws:
WrongReferenceAttributeValueException
- if any of attributes values has wrong/illegal semanticsPrivilegeException
VoNotExistsException
WrongAttributeAssignmentException
AttributeNotExistsException
- See Also:
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Resource resource, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Throws:
WrongReferenceAttributeValueException
- if any of attributes values has wrong/illegal semanticsPrivilegeException
ResourceNotExistsException
WrongAttributeAssignmentException
AttributeNotExistsException
- See Also:
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, MemberResourceMismatchException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, MemberResourceMismatchException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Parameters:
workWithUserAttributes
- method can process also user and user-facility attributes (user is automatically get from member a facility is get from resource) !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!- Throws:
PrivilegeException
ResourceNotExistsException
MemberNotExistsException
WrongAttributeAssignmentException
WrongReferenceAttributeValueException
AttributeNotExistsException
MemberResourceMismatchException
- See Also:
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws PrivilegeException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, GroupNotExistsException, MemberGroupMismatchException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, MemberResourceMismatchException Check if value of attributes has valid semantics. Attributes can be from namespace: member, user, member-resource and user-facility.PRIVILEGE: Check attributes only when principal has access to write on them.
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Member member, List<Attribute> attributes) throws PrivilegeException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on themBatch version of checkAttributeSemantics
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on themBatch version of checkAttributeSemantics
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, User user, List<Attribute> attributes) throws PrivilegeException, UserNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Host host, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, HostNotExistsException, WrongAttributeAssignmentException PRIVILEGE: Check attributes only when principal has access to write on them.batch version of checkAttributeSemantics
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException, WrongReferenceAttributeValueException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
-
checkAttributesSemantics
void checkAttributesSemantics(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeAssignmentException PRIVILEGE: Check attributes only when principal has access to write on them.batch version of checkAttributeSemantics
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Facility facility, List<Attribute> attributes) throws PrivilegeException, FacilityNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Throws:
WrongAttributeValueException
- if any of attributes values has wrong/illegal syntaxPrivilegeException
FacilityNotExistsException
WrongAttributeAssignmentException
AttributeNotExistsException
- See Also:
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Vo vo, List<Attribute> attributes) throws PrivilegeException, VoNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Throws:
WrongAttributeValueException
- if any of attributes values has wrong/illegal syntaxPrivilegeException
VoNotExistsException
WrongAttributeAssignmentException
AttributeNotExistsException
- See Also:
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Resource resource, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Throws:
WrongAttributeValueException
- if any of attributes values has wrong/illegal syntaxPrivilegeException
ResourceNotExistsException
WrongAttributeAssignmentException
AttributeNotExistsException
- See Also:
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberResourceMismatchException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberResourceMismatchException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Parameters:
workWithUserAttributes
- method can process also user and user-facility attributes (user is automatically get from member a facility is get from resource) !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!- Throws:
PrivilegeException
ResourceNotExistsException
MemberNotExistsException
WrongAttributeValueException
WrongAttributeAssignmentException
AttributeNotExistsException
MemberResourceMismatchException
- See Also:
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws PrivilegeException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, GroupNotExistsException, MemberGroupMismatchException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, GroupNotExistsException, MemberGroupMismatchException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Parameters:
workWithUserAttributes
- method can process also user and member attributes (user is automatically get from member) !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!- Throws:
PrivilegeException
MemberNotExistsException
WrongAttributeValueException
WrongAttributeAssignmentException
AttributeNotExistsException
GroupNotExistsException
MemberGroupMismatchException
- See Also:
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberResourceMismatchException Check if value of attributes has valid syntax. Attributes can be from namespace: member, user, member-resource and user-facility.PRIVILEGE: Check attributes only when principal has access to write on them.
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Member member, List<Attribute> attributes) throws PrivilegeException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on themBatch version of checkAttributeSyntax
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on themBatch version of checkAttributeSyntax
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, User user, List<Attribute> attributes) throws PrivilegeException, UserNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Host host, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, HostNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException PRIVILEGE: Check attributes only when principal has access to write on them.batch version of checkAttributeSyntax
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, GroupResourceMismatchException PRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
-
checkAttributesSyntax
void checkAttributesSyntax(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException PRIVILEGE: Check attributes only when principal has access to write on them.batch version of checkAttributeSyntax
-
checkNamespace
void checkNamespace(PerunSession sess, AttributeDefinition attribute, String namespace) throws WrongAttributeAssignmentException Determine if attribute is from specified namespace.PRIVILEGE: No access needed.
- Throws:
WrongAttributeAssignmentException
- if the attribute isn't from specified namespace
-
checkNamespace
void checkNamespace(PerunSession sess, List<? extends AttributeDefinition> attributes, String namespace) throws WrongAttributeAssignmentException Determine if attributes are from specified namespace.PRIVILEGE: No access needed.
- Throws:
WrongAttributeAssignmentException
- if any of the attribute isn't from specified namespace
-
convertAttributeToNonunique
void convertAttributeToNonunique(PerunSession session, int attrId) throws PrivilegeException, AttributeNotExistsException, AttributeNotMarkedUniqueException Converts attribute to non-unique.Unmarks unique flag from attribute definition, and deletes all values from a special table with unique constraint that ensures that all values remain unique.
- Parameters:
session
- perun sessionattrId
- attribute id- Throws:
PrivilegeException
- insufficient permissionsAttributeNotExistsException
- when the attribute definition for attrId doesn't existAttributeNotMarkedUniqueException
- when the attribute definition is not unique
-
convertAttributeToUnique
void convertAttributeToUnique(PerunSession session, int attrId) throws PrivilegeException, AttributeNotExistsException, AttributeAlreadyMarkedUniqueException Converts attribute to unique. Marks the attribute definition as unique, and copies all values to a special table with unique constraint that ensures that all values remain unique. Values of type ArrayList and LinkedHashMap are splitted into multiple values, thus each of the subvalues must be unique.Entityless attributes cannot be converted to unique, only attributes attached to PerunBeans or pairs of PerunBeans.
- Parameters:
session
- perun sessionattrId
- attribute id- Throws:
PrivilegeException
AttributeNotExistsException
AttributeAlreadyMarkedUniqueException
-
createAttribute
AttributeDefinition createAttribute(PerunSession sess, AttributeDefinition attributeDefinition) throws PrivilegeException, AttributeDefinitionExistsException Creates an attribute, the attribute is stored into the appropriate DB table according to the namespacePRIVILEGE: Only PerunAdmin can create new attribute.
- Parameters:
sess
- perun sessionattributeDefinition
- attribute to create- Returns:
- attribute with set id
- Throws:
AttributeDefinitionExistsException
- if attribute already existsInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not given
-
deleteAttribute
void deleteAttribute(PerunSession sess, AttributeDefinition attributeDefinition) throws PrivilegeException, AttributeNotExistsException, RelationExistsException Deletes the attribute.PRIVILEGE: Only PerunAdmin can delete existing attribute.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenRelationExistsException
- if attribute definition has any relation to some application form item or to some service as a required attributeAttributeNotExistsException
-
deleteAttribute
void deleteAttribute(PerunSession sess, AttributeDefinition attributeDefinition, boolean force) throws PrivilegeException, AttributeNotExistsException Deletes the attribute.PRIVILEGE: Only PerunAdmin can delete existing attribute.
- Parameters:
attributeDefinition
- attribute to deleteforce
- delete also all existing relation. If this parameter is true the RelationExistsException is never thrown.- Throws:
PrivilegeException
AttributeNotExistsException
-
doTheMagic
void doTheMagic(PerunSession sess, Member member) throws PrivilegeException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberNotExistsException PRIVILEGE: Only for PerunAdmin.Same as doTheMagic(sess, member, false);
-
doTheMagic
void doTheMagic(PerunSession sess, Member member, boolean trueMagic) throws PrivilegeException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberNotExistsException This function takes all member-related attributes (member, user, member-resource, user-facility) and tries to fill them and set them. If trueMagic is set, this method can remove invalid attribute value (value which didn't pass checkAttributeSemantics test) and try to fill and set another. In this case, WrongReferenceAttributeValueException, WrongAttributeValueException are thrown if same attribute can't be set correctly.PRIVILEGE: Only for PerunAdmin.
-
fillAttribute
Attribute fillAttribute(PerunSession sess, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, WrongAttributeAssignmentException This method tries to fill a value of the resource attribute. Value may be copied from some facility attribute.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionresource
- resource, attribute of which you want to fillattribute
- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exists in underlying data sourceWrongAttributeAssignmentException
-
fillAttribute
Attribute fillAttribute(PerunSession sess, Member member, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException This method tries to fill value of the member-resource attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionmember
- member which attribute you want to fillresource
- resource which attribute you want to fillattribute
- attribute to fill. If attribute already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exists in underlying data sourceMemberNotExistsException
- if member doesn't exists in underlying data source or he doesn't have access to this resourceWrongAttributeAssignmentException
MemberResourceMismatchException
-
fillAttribute
Attribute fillAttribute(PerunSession sess, Member member, Group group, Attribute attribute) throws PrivilegeException, MemberNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, MemberGroupMismatchException This method tries to fill value of the member-group attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionmember
- attribute of this member (and resource) you want to fillgroup
- attribute of this group you want to fillattribute
- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenMemberNotExistsException
- if member doesn't exists in underlying data source or he doesn't have access to this resourceGroupNotExistsException
- if group doesn't existsWrongAttributeAssignmentException
MemberGroupMismatchException
-
fillAttribute
Attribute fillAttribute(PerunSession sess, Member member, Attribute attribute) throws PrivilegeException, MemberNotExistsException, AttributeNotExistsException This method tries to fill value of the member attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionmember
- attribute of this member (and resource) and you want to fillattribute
- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenMemberNotExistsException
- if member doesn't exists in underlying data source or he doesn't have access to this resourceAttributeNotExistsException
- if the attribute doesn't exists in underlying data source
-
fillAttribute
Attribute fillAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException This method tries to fill value of the user-facility attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionfacility
- attribute of this facility (and user) and you want to filluser
- attribute of this user (and facility) and you want to fillattribute
- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exists in underlying data sourceUserNotExistsException
- if user doesn't exists in underlying data source or he doesn't have access to this facilityAttributeNotExistsException
- if the attribute doesn't exists in underlying data sourceWrongAttributeAssignmentException
-
fillAttribute
Attribute fillAttribute(PerunSession sess, User user, Attribute attribute) throws PrivilegeException, UserNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException This method tries to fill value of the user attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionuser
- attribute of this user (and facility) and you want to fillattribute
- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenUserNotExistsException
- if user doesn't exists in underlying data source or he doesn't have access to this facilityAttributeNotExistsException
- if the attribute doesn't exists in underlying data sourceWrongAttributeAssignmentException
-
fillAttribute
Attribute fillAttribute(PerunSession sess, Resource resource, Group group, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException This method tries to fill group-resource attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionresource
- resource which attr you want to fillgroup
- group which attr you want to fillattribute
- attribute to be filled- Returns:
- attribute which MAY have filled value
- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeAssignmentException
- if attribute isn't group-resource attributeResourceNotExistsException
GroupNotExistsException
AttributeNotExistsException
GroupResourceMismatchException
-
fillAttribute
Attribute fillAttribute(PerunSession sess, Host host, Attribute attribute) throws PrivilegeException, HostNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException This method tries to fill host attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionhost
- host for which you want have attribute filledattribute
- attr which you want to fill- Returns:
- attribute which MAY have filled value
- Throws:
PrivilegeException
- if privileges are not givenWrongAttributeAssignmentException
- if attribute isn't group-resource attributeHostNotExistsException
AttributeNotExistsException
-
fillAttribute
Attribute fillAttribute(PerunSession sess, Group group, Attribute attribute) throws PrivilegeException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException This method tries to fill group attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Parameters:
group
- group which attribute you want to fillattribute
- attribute which you want to fill- Returns:
- attribute which may have filled value
- Throws:
PrivilegeException
GroupNotExistsException
AttributeNotExistsException
WrongAttributeAssignmentException
-
fillAttribute
Attribute fillAttribute(PerunSession sess, UserExtSource ues, Attribute attribute) throws PrivilegeException, UserExtSourceNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException This method tries to fill value of the user external source attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionues
- user external source which will be filled with attributeattribute
- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which may have filled value
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenUserExtSourceNotExistsException
- if user external source doesn't exists in underlying data sourceAttributeNotExistsException
- if the attribute doesn't exists in underlying data sourceWrongAttributeAssignmentException
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Resource resource, List<Attribute> attributes) throws ResourceNotExistsException, WrongAttributeAssignmentException PRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws ResourceNotExistsException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException PRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException PRIVILEGE: Fill attributes only when principal has access to write on them.- Parameters:
workWithUserAttributes
- method can process also user and user-facility attributes (user is automatically get from member a facility is get from resource) !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!- Throws:
ResourceNotExistsException
MemberNotExistsException
AttributeNotExistsException
WrongAttributeAssignmentException
MemberResourceMismatchException
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws MemberNotExistsException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, MemberGroupMismatchException PRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws MemberNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, GroupNotExistsException, MemberGroupMismatchException PRIVILEGE: Fill attributes only when principal has access to write on them.- Parameters:
workWithUserAttributes
- method can process also user and member attributes (user is automatically get from member) !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!- Throws:
MemberNotExistsException
AttributeNotExistsException
WrongAttributeAssignmentException
GroupNotExistsException
MemberGroupMismatchException
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException This method tries to fill value of the user, member, member-resource and user-facility attributes. This value is automatically generated, but not all attributes can be filled this way. This method skips all attributes with not-null value.PRIVILEGE: Fill attributes only when principal has access to write on them.
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Member member, List<Attribute> attributes) throws MemberNotExistsException, AttributeNotExistsException PRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException PRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, User user, List<Attribute> attributes) throws UserNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException PRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws ResourceNotExistsException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException PRIVILEGE: Fill attributes only when principal has access to write on them.batch version of fillAttribute, this method skips attributes with non-null value
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Host host, List<Attribute> attributes) throws HostNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException PRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, Group group, List<Attribute> attributes) throws GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException PRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute
-
fillAttributes
List<Attribute> fillAttributes(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws UserExtSourceNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException PRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute.
-
getAllAttributesStartWithNameWithoutNullValue
List<Attribute> getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Group group, String startPartOfName) throws GroupNotExistsException Get all non-empty attributes associated with the group starts with name startPartOfName. Get only nonvirtual attributes with notNull value.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessiongroup
- to get the attributes fromstartPartOfName
- attribute name start with this part- Returns:
- list of attributes which name start with startPartOfName
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionGroupNotExistsException
- if the group doesn't exist
-
getAllAttributesStartWithNameWithoutNullValue
List<Attribute> getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Resource resource, String startPartOfName) throws ResourceNotExistsException Get all non-empty attributes associated with the resource starts with name startPartOfName. Get only nonvirtual attributes with notNull value.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionresource
- to get the attributes fromstartPartOfName
- attribute name start with this part- Returns:
- list of attributes which name start with startPartOfName
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exist
-
getAllNamespaces
Returns list of all possible namespaces.- Parameters:
sess
- session- Returns:
- list of namespaces
- Throws:
PrivilegeException
- insufficient permissions
-
getAttribute
Attribute getAttribute(PerunSession sess, Facility facility, String attributeName) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Get particular attribute for the facility.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionfacility
- to get attribute fromattributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute is not facility attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttribute
Attribute getAttribute(PerunSession sess, Vo vo, String attributeName) throws PrivilegeException, VoNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Get particular attribute for the vo.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionvo
- to get attribute fromattributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenVoNotExistsException
- if the vo doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute is not vo attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttribute
Attribute getAttribute(PerunSession sess, Group group, String attributeName) throws PrivilegeException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Get particular attribute for the group.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessiongroup
- group get attribute fromattributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenGroupNotExistsException
- if the group doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute is not group attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttribute
Attribute getAttribute(PerunSession sess, Resource resource, String attributeName) throws PrivilegeException, ResourceNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Get particular attribute for the resource.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionresource
- to get attribute fromattributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute is not resource attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttribute
Attribute getAttribute(PerunSession sess, Member member, Resource resource, String attributeName) throws PrivilegeException, ResourceNotExistsException, AttributeNotExistsException, MemberNotExistsException, MemberResourceMismatchException, WrongAttributeAssignmentException Get particular attribute for the member on this resource.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionmember
- to get attribute fromresource
- to get attribute fromattributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exists in the underlying data sourceMemberNotExistsException
- if the member doesn't exists in the underlying data sourceAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceMemberResourceMismatchException
- if member and resource are not in the same VOWrongAttributeAssignmentException
- if attribute is not member_resource attribute
-
getAttribute
Attribute getAttribute(PerunSession sess, Member member, Group group, String attributeName) throws PrivilegeException, GroupNotExistsException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, MemberGroupMismatchException Get particular attribute for the member in this group.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionmember
- to get attribute fromgroup
- to get attribute fromattributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenGroupNotExistsException
- if the resource doesn't exists in the underlying data sourceMemberNotExistsException
- if the member doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute is not member_group attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceMemberGroupMismatchException
-
getAttribute
Attribute getAttribute(PerunSession sess, Member member, String attributeName) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException Get particular attribute for the member.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionmember
- to get attribute fromattributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenMemberNotExistsException
- if the member doesn't exists in the underlying data sourceAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException
-
getAttribute
Attribute getAttribute(PerunSession sess, Facility facility, User user, String attributeName) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException Get particular attribute for the user on this facility.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionfacility
- to get attribute fromuser
- to get attribute fromattributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exists in the underlying data sourceUserNotExistsException
- if the user doesn't exists in the underlying data sourceAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException
-
getAttribute
Attribute getAttribute(PerunSession sess, User user, String attributeName) throws PrivilegeException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException Get particular attribute for the user.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionuser
- to get attribute fromattributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenUserNotExistsException
- if the user doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute is not user attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttribute
Attribute getAttribute(PerunSession sess, Host host, String attributeName) throws PrivilegeException, AttributeNotExistsException, HostNotExistsException, WrongAttributeAssignmentException Get particular attribute for the hostPRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionhost
- to get attribute fromattributeName
- attribute name defined in host manager- Returns:
- attribute
- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceHostNotExistsException
- if the host doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't host attribute
-
getAttribute
Attribute getAttribute(PerunSession sess, Resource resource, Group group, String attributeName) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException Get particular group attribute on resourcePRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionresource
- resource to get attributes fromgroup
- group to get attributes forattributeName
- attribute name- Returns:
- attribute
- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't group-resource attributeResourceNotExistsException
GroupNotExistsException
GroupResourceMismatchException
-
getAttribute
Attribute getAttribute(PerunSession sess, String key, String attributeName) throws AttributeNotExistsException, WrongAttributeAssignmentException Get particular entityless attributePRIVILEGE: Only PerunAdmin can access to entitylessAttributes.
- Parameters:
sess
- perun sessionkey
- key to get attribute forattributeName
- attribute name- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't entityless attribute
-
getAttribute
Attribute getAttribute(PerunSession sess, UserExtSource ues, String attributeName) throws PrivilegeException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeAssignmentException Get particular attribute for the user external source.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionues
- to get attribute fromattributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenUserExtSourceNotExistsException
- if the user external source doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't ues attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttributeById
Attribute getAttributeById(PerunSession sess, Facility facility, int id) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Get particular attribute for the facility.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
facility
- to get attribute fromid
- attribute id- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't facility attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttributeById
Attribute getAttributeById(PerunSession sess, Vo vo, int id) throws PrivilegeException, VoNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Get particular attribute for the vo.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
vo
- to get attribute fromid
- attribute id- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenVoNotExistsException
- if the vo doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't facility attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttributeById
Attribute getAttributeById(PerunSession sess, Resource resource, int id) throws PrivilegeException, ResourceNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Get particular attribute for the resource.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
resource
- to get attribute fromid
- attribute id- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't resource attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttributeById
Attribute getAttributeById(PerunSession sess, Member member, Resource resource, int id) throws PrivilegeException, ResourceNotExistsException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException Get particular attribute for the member on this resource.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
member
- to get attribute fromresource
- to get attribute fromid
- attribute id- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exists in the underlying data sourceMemberNotExistsException
- if the member doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't resource-member attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceMemberResourceMismatchException
-
getAttributeById
Attribute getAttributeById(PerunSession sess, Member member, Group group, int id) throws PrivilegeException, GroupNotExistsException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, MemberGroupMismatchException Get particular attribute for the member in this group.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
sess
- perun sessionmember
- to get attribute fromgroup
- to get attribute fromid
- attribute id- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenGroupNotExistsException
- if the resource doesn't exists in the underlying data sourceMemberNotExistsException
- if the member doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't member-group attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceMemberGroupMismatchException
-
getAttributeById
Attribute getAttributeById(PerunSession sess, Member member, int id) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException Get particular attribute for the member.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
member
- to get attribute fromid
- attribute id- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenMemberNotExistsException
- if the member doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't member attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttributeById
Attribute getAttributeById(PerunSession sess, Facility facility, User user, int id) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException Get particular attribute for the user on this facility.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
facility
- to get attribute fromuser
- to get attribute fromid
- attribute id- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exists in the underlying data sourceUserNotExistsException
- if the user doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't user-facility attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttributeById
Attribute getAttributeById(PerunSession sess, User user, int id) throws PrivilegeException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException Get particular attribute for the user.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Parameters:
user
- to get attribute fromid
- attribute id- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenUserNotExistsException
- if the user doesn't exists in the underlying data sourceWrongAttributeAssignmentException
- if attribute isn't user attributeAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttributeById
Attribute getAttributeById(PerunSession sess, Host host, int id) throws PrivilegeException, AttributeNotExistsException, HostNotExistsException, WrongAttributeAssignmentException Get particular attribute for the hostPRIVILEGE: Principal need to have access to attribute which wants to get.
- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceHostNotExistsException
- if the host doesn't exist in the underlying data sourceWrongAttributeAssignmentException
- if the attribute isn't host attribute
-
getAttributeById
Attribute getAttributeById(PerunSession sess, Resource resource, Group group, int id) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException Get particular group attribute on this resourcePRIVILEGE: Principal need to have access to attribute which wants to get.
- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceResourceNotExistsException
GroupNotExistsException
WrongAttributeAssignmentException
GroupResourceMismatchException
-
getAttributeById
Attribute getAttributeById(PerunSession sess, Group group, int id) throws PrivilegeException, AttributeNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException Get particular attribute for groupPRIVILEGE: Principal need to have access to attribute which wants to get.
- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceGroupNotExistsException
WrongAttributeAssignmentException
-
getAttributeById
Attribute getAttributeById(PerunSession sess, UserExtSource ues, int id) throws PrivilegeException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeAssignmentException Get particular attribute for user external sourcePRIVILEGE: Principal need to have access to attribute which wants to get.
- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionAttributeNotExistsException
- if the attribute doesn't exists in the underlying data sourceUserExtSourceNotExistsException
WrongAttributeAssignmentException
-
getAttributeDefinition
AttributeDefinition getAttributeDefinition(PerunSession sess, String attributeName) throws AttributeNotExistsException Get attribute definition (attribute without defined value).PRIVILEGE: No access needed.
- Parameters:
attributeName
- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttributeDefinitionById
AttributeDefinition getAttributeDefinitionById(PerunSession sess, int id) throws AttributeNotExistsException Get attribute definition (attribute without defined value).PRIVILEGE: No access needed.
- Parameters:
id
- attribute id- Returns:
- attribute
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionAttributeNotExistsException
- if the attribute doesn't exists in the underlying data source
-
getAttributePolicyCollections
List<AttributePolicyCollection> getAttributePolicyCollections(PerunSession sess, int attributeId) throws PrivilegeException, AttributeNotExistsException Gets attribute policy collections for an attribute definition with given id.- Parameters:
sess
- perun sessionattributeId
- id of the attribute definition- Returns:
- all policy collections of the attribute definition
- Throws:
AttributeNotExistsException
- when there is no attribute definition with such idPrivilegeException
-
getAttributeRights
@Deprecated List<AttributeRights> getAttributeRights(PerunSession sess, int attributeId) throws PrivilegeException, AttributeNotExistsException Deprecated.Gets attribute rights of an attribute with id given as a parameter. If the attribute has no rights for a role, it returns empty list. That means the returned list has always 4 items for each of the roles VOADMIN, FACILITYADMIN, GROUPADMIN, SELF. Info: not return rights for role VoObserver (could be same like read rights for VoAdmin)- Parameters:
sess
- perun sessionattributeId
- id of the attribute- Returns:
- all rights of the attribute
- Throws:
PrivilegeException
AttributeNotExistsException
-
getAttributeRules
AttributeRules getAttributeRules(PerunSession sess, int attributeId) throws PrivilegeException, AttributeNotExistsException Gets attribute rules containing policy collections and critical actions for an attribute definition with given id- Parameters:
sess
- perun sessionattributeId
- id of the attribute definition- Returns:
- attribute rules of the attribute definition
- Throws:
AttributeNotExistsException
- when there is no attribute definition with such idPrivilegeException
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Facility facility) throws FacilityNotExistsException Get all non-empty attributes associated with the facility. PRIVILEGE: Get only those attributes the principal has access to.- Parameters:
sess
- perun sessionfacility
- facility to get the attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionFacilityNotExistsException
- if the facility doesn't exists in underlying data source
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Facility facility, List<String> attrNames) throws FacilityNotExistsException Get all attributes associated with the facility which have name in list attrNames (empty too). Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionfacility
- to get the attributes fromattrNames
- list of attributes' names- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionFacilityNotExistsException
- if the facility not exists in Perun
-
getAttributes
Get all non-empty attributes associated with the vo. PRIVILEGE: Get only those attributes the principal has access to.- Parameters:
sess
- perun sessionvo
- vo to get the attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionVoNotExistsException
- if the vo doesn't exists in underlying data source
-
getAttributes
Get all non-empty attributes associated with the group. PRIVILEGE: Get only those attributes the principal has access to.- Parameters:
sess
- perun sessiongroup
- group to get the attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionGroupNotExistsException
- if the group doesn't exists in underlying data source
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Resource resource) throws ResourceNotExistsException Get all non-empty attributes associated with the resource. PRIVILEGE: Get only those attributes the principal has access to.- Parameters:
sess
- perun sessionresource
- resource to get the attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exists in underlying data source
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Member member, Resource resource) throws MemberResourceMismatchException Get all non-empty attributes associated with the member on the resource. PRIVILEGE: Get only those attributes the principal has access to.- Parameters:
sess
- perun sessionmember
- to get the attributes fromresource
- to get the attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberResourceMismatchException
- if member and resource are not in the same VO
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Gets all non-empty attributes associated with the member on the resource and if workWithUserAttributes is true, gets also all non-empty user, user-facility and member attributes. PRIVILEGE: Get only those attributes the principal has access to.- Parameters:
sess
- perun sessionmember
- to get the attributes fromresource
- to get the attributes fromworkWithUserAttributes
- if true returns also user-facility, user and member attributes (user is automatically get from member and facility is get from resource)- Returns:
- list of attributes
- Throws:
ResourceNotExistsException
- if the resource doesn't exists in underlying data sourceInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
- if the member doesn't have access to this resourceMemberResourceMismatchException
- if member and resource are not in the same VO!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Member member, Resource resource, List<String> attrNames, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Gets selected non-empty attributes associated with the member and the resource. It returns member and member-resource attributes and also user and user-facility attributes if workWithUserAttributes is true. Attributes are selected by list of attr_names. Empty list means all attributes.- Parameters:
sess
- perun sessionmember
- to get the attributes fromresource
- to get the attributes fromattrNames
- list of attributes to getworkWithUserAttributes
- if true returns also user and user-facility attributes (user is automatically get from member a facility is get from resource)- Returns:
- list of selected attributes
- Throws:
ResourceNotExistsException
- if the resource doesn't exists in underlying data sourceInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
- if the member doesn't have access to this resourceMemberResourceMismatchException
- if member and resource are not in the same VO
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Member member, Group group) throws GroupNotExistsException, MemberNotExistsException, MemberGroupMismatchException Get all non-empty attributes associated with the member in the group. PRIVILEGE: Get only those attributes the principal has access to.- Parameters:
sess
- perun sessionmember
- to get the attributes fromgroup
- group to get the attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionGroupNotExistsException
- if the group doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't have access to this resourceMemberGroupMismatchException
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Member member, Group group, List<String> attrNames) throws GroupNotExistsException, MemberNotExistsException, MemberGroupMismatchException Get all attributes (empty and virtual too)associated with the member in the group which have name in list attrNames.- Parameters:
sess
- perun sessionmember
- to get the attributes fromgroup
- group to get the attributes fromattrNames
- list of attributes' names- Returns:
- list of attributes
- Throws:
GroupNotExistsException
- if the group doesn't exists in underlying data sourceInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
- if the member doesn't have access to this resourceMemberGroupMismatchException
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Member member, Group group, List<String> attrNames, boolean workWithUserAttributes) throws GroupNotExistsException, MemberNotExistsException, MemberGroupMismatchException Get all attributes associated with the member in the group which have name in list attrNames (empty too). If workWithUserAttribute is true, return also all user attributes in list of attrNames (with virtual attributes too).- Parameters:
sess
- perun sessionmember
- to get the attributes fromgroup
- group to get the attributes fromattrNames
- list of attributes' namesworkWithUserAttributes
- if true returns also user and member attributes (user is automatically get from member)- Returns:
- list of attributes
- Throws:
GroupNotExistsException
- if the group doesn't exists in underlying data sourceInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
- if the member doesn't have access to this resourceMemberGroupMismatchException
-
getAttributes
Get all entityless attributes with subject equaled String keyPRIVILEGE: Only PerunAdmin can get Entityless attributes.
- Parameters:
sess
- perun sessionkey
- string of subject of entityless attributes- Returns:
- list of attributes
- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member) throws ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, MemberResourceMismatchException Get all non-empty member, user, member-resource and user-facility attributes.PRIVILEGE: Get only those attributes the principal has access to.
-
getAttributes
Get all non-empty attributes associated with the member.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionmember
- to get the attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
- if the member doesn't have access to this resource
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group, Member member, List<String> attrNames) throws ResourceNotExistsException, GroupNotExistsException, MemberNotExistsException, GroupResourceMismatchException, MemberResourceMismatchException, MemberGroupMismatchException Get all attributes by the list of attrNames if they are in one of these namespaces: - member - group - member-group - resource - member-resource - group-resource - user (get from member object) - facility (get from resource object) - user-facilityReturn all attributes even if they are empty or virtual.
PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessiongroup
-resource
-attrNames
- list of attributes' names- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionGroupNotExistsException
- if the group doesn't existGroupResourceMismatchException
- if group and resource are not from the same voMemberResourceMismatchException
- if member and resource are not from the same voResourceNotExistsException
- if the resource doesn't existMemberNotExistsException
- if the member doesn't existMemberGroupMismatchException
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) throws ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Get all non-empty attributes associated with the group and resource. Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
If workWithGroupAttributes is true, return also all group attributes in list of attrNames (with virtual attributes too).
- Parameters:
sess
- perun sessionresource
- to get the attributes fromgroup
- to get the attributes fromworkWithGroupAttributes
- if group attributes need to be return too- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't existGroupNotExistsException
- if the group doesn't existGroupResourceMismatchException
- if group and resource are not from the same vo
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group, List<String> attrNames, boolean workWithGroupAttributes) throws ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Get all attributes associated with the group and the resource which have their name in list attrNames (empty too). Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
If workWithGroupAttributes is true, return also all group attributes in list of attrNames (with virtual attributes too).
- Parameters:
sess
- perun sessionresource
- to get the attributes fromgroup
- to get the attributes fromattrNames
- list of attributes' namesworkWithGroupAttributes
- if group attributes need to be return too- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't existGroupNotExistsException
- if the group doesn't existGroupResourceMismatchException
- if group and resource are not from the same vo
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Member member, List<String> attrNames) throws MemberNotExistsException Get all attributes associated with the member which have name in list attrNames (empty too). Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionmember
- to get the attributes fromattrNames
- list of attributes' names- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
- if the member doesn't have access to this resource
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Group group, List<String> attrNames) throws GroupNotExistsException Get all attributes associated with the group which have name in list attrNames (empty too). Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessiongroup
- to get the attributes fromattrNames
- list of attributes' names- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionGroupNotExistsException
- if the group doesn't have access to this resource
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Resource resource, List<String> attrNames) throws ResourceNotExistsException Get all attributes associated with the resource which have name in list attrNames (empty too). Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionresource
- to get the attributes fromattrNames
- list of attributes' names- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource not exists in Perun
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Member member, List<String> attrNames, boolean workWithUserAttributes) throws MemberNotExistsException Get all attributes associated with the member which have name in list attrNames (empty too) Virtual attributes too.If workWithUserAttribute is true, return also all user attributes in list of attrNames (with virtual attributes too).
PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionmember
- to get the attributes fromattrNames
- list of attributes' namesworkWithUserAttributes
- if user attributes need to be returned too- Returns:
- list of member (and also if needed user) attributes
- Throws:
MemberNotExistsException
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Vo vo, List<String> attrNames) throws VoNotExistsException Get all attributes associated with the vo which have name in list attrNames (empty too).PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionvo
- to get the attributes fromattrNames
- list of attributes' names- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionVoNotExistsException
- if the vo doesn't have access to this resource
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, User user, List<String> attrNames) throws UserNotExistsException Get all attributes associated with the user which have name in list attrNames (empty too).PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionuser
- to get the attributes fromattrNames
- list of attributes' names- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionUserNotExistsException
- if the user doesn't exists
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, UserExtSource ues, List<String> attrNames) throws UserExtSourceNotExistsException Get all attributes associated with the userExtSource which have name in list attrNames (empty too).PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionues
- to get the attributes fromattrNames
- list of attributes' names- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionUserExtSourceNotExistsException
- if the UserExtSource doesn't have access to this resource
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Facility facility, User user) throws FacilityNotExistsException, UserNotExistsException Get all non-empty attributes associated with the user on the facility.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionfacility
- to get the attributes fromuser
- to get the attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionFacilityNotExistsException
- if the facility doesn't exists in underlying data sourceUserNotExistsException
- if the user doesn't have access to this facility
-
getAttributes
Get all non-empty attributes associated with the user.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionuser
- to get the attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionUserNotExistsException
- if the user doesn't have access to this facility
-
getAttributes
Get all non-empty attributes associated with the hostPRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionhost
- host to get attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raises in concrete implementation, the exception is wrapped in InternalErrorExceptionHostNotExistsException
- if the host doesn't exist in underlying data source
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Host host, List<String> attrNames) throws InternalErrorException, HostNotExistsException Get all attributes associated with the host which have name in list attrNames (empty too). Empty list attrNames will return no attributes.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionhost
- host to get attributes forattrNames
- list of attributes' names- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raises in concrete implementation, the exception is wrapped in InternalErrorExceptionHostNotExistsException
- if the host doesn't exist in underlying data source
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group) throws ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Get all non-empty attributes associated with the group on resourcePRIVILEGE: Get only those attributes the principal has access to.
- Returns:
- list of group_resource attributes
- Throws:
InternalErrorException
- if an exception raises in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exist in underlying data sourceGroupNotExistsException
- if the group doesn't exist in the underlying data sourceGroupResourceMismatchException
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, Member member, boolean workWithUserAttributes) throws MemberNotExistsException Get all non-empty attributes associated with the member and if workWithUserAttributes is true, get all non-empty attributes associated with user, who is this member.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionmember
- to get the attributes fromworkWithUserAttributes
- if true returns also user attributes- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
- if the member doesn't have access to this resource
-
getAttributes
List<Attribute> getAttributes(PerunSession sess, UserExtSource ues) throws UserExtSourceNotExistsException Get all non-empty attributes associated with the UserExtSource.PRIVILEGE: Get only those attributes the principal has access to.
- Parameters:
sess
- perun sessionues
- to get the attributes from- Returns:
- list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionUserExtSourceNotExistsException
- if the user external source doesn't exists
-
getAttributesByAttributeDefinition
List<Attribute> getAttributesByAttributeDefinition(PerunSession sess, AttributeDefinition attributeDefinition) throws PrivilegeException, AttributeNotExistsException, WrongAttributeAssignmentException Returns all attributes with not-null value which fits the attributeDefinition. Can't proscess core or virtual attributes.PRIVILEGE: Only PerunAdmin has access to get Attributes by AttributeDefinition
-
getAttributesDefinition
List<AttributeDefinition> getAttributesDefinition(PerunSession sess, List<String> listOfAttributesNames) throws AttributeNotExistsException From listOfAttributesNames get list of attributeDefinitionsPRIVILEGE: No access needed.
- Returns:
- list of AttributeDefinitions
- Throws:
AttributeNotExistsException
-
getAttributesDefinition
Get all attributes definition (attribute without defined value).PRIVILEGE: No access needed.
- Returns:
- List of attributes definitions
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
-
getAttributesDefinitionByNamespace
Get attributes definition (attribute without defined value) with specified namespace.PRIVILEGE: No access needed.
- Parameters:
namespace
- get only attributes with this namespace- Returns:
- List of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
-
getAttributesDefinitionWithRights
List<AttributeDefinition> getAttributesDefinitionWithRights(PerunSession sess, List<PerunBean> entities) Get all (for entities) attributeDefinitions which user has right to READ them and fill attribute writable (if user has also right to WRITE them). For entities means that return only those attributeDefinition which are in namespace of entities or possible combination of entities. For Example: If entities are "member, user, resource" then return only AD in namespaces "member, user, resource and resource-member"- Parameters:
entities
- list of perunBeans (member, user...)- Returns:
- list of AttributeDefinitions with rights (writable will be filled correctly by user in session)
-
getEntitylessAttributes
List<Attribute> getEntitylessAttributes(PerunSession sess, String attrName) throws PrivilegeException Get all entityless attributes with attributeNamePRIVILEGE: Only PerunAdmin has access to entityless attributes.
- Parameters:
sess
- perun sessionattrName
- attribute name- Returns:
- attribute
- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
-
getEntitylessAttributesWithKeys
Map<String,Attribute> getEntitylessAttributesWithKeys(PerunSession sess, String attrName) throws PrivilegeException, AttributeNotExistsException, WrongAttributeAssignmentException Get entityless attributes mapped by their keys.- Parameters:
sess
- sessionattrName
- attribute name- Returns:
- Map of entityless attributes mapped by their keys
- Throws:
PrivilegeException
- insufficient permissionsAttributeNotExistsException
- when the attribute definition for attrName doesn't existWrongAttributeAssignmentException
- when passed non-entityless attribute
-
getEntitylessAttributesWithKeys
Map<String,Attribute> getEntitylessAttributesWithKeys(PerunSession sess, String attrName, List<String> keys) throws PrivilegeException, AttributeNotExistsException, WrongAttributeAssignmentException Get entityless attributes mapped by their keys. Returns only attributes for specified keys.- Parameters:
sess
- sessionattrName
- attribute name- Returns:
- Map of entityless attributes mapped by their keys
- Throws:
PrivilegeException
- insufficient permissionsAttributeNotExistsException
- when the attribute definition for attrName doesn't exist, or when there is no such attribute for one of the specified keysWrongAttributeAssignmentException
- when passed non-entityless attribute
-
getEntitylessKeys
List<String> getEntitylessKeys(PerunSession sess, AttributeDefinition attributeDefinition) throws PrivilegeException Returns list of Keys which fits the attributeDefinition.PRIVILEGE: Only PerunAdmin has access to entityless keys.
- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
-
getFriendlyNameFromAttributeName
Gets the friendly name from the attribute name.PRIVILEGE: No access needed.
- Returns:
- the friendly name from the attribute name
-
getIdpAttributeDefinitions
Returns list of definitions of IdP attributes that are filled to fedInfo- Parameters:
sess
- session- Returns:
- list of attribute definitions
-
getLogins
Get all attributes with user's logins.PRIVILEGE: Get only those logins principal has access to.
- Returns:
- list of attributes with login
- Throws:
UserNotExistsException
-
getModulesDependenciesGraph
GraphDTO getModulesDependenciesGraph(PerunSession session, GraphTextFormat format) throws PrivilegeException Generates graph describing attribute modules dependencies. Text output format can be specified byGraphTextFormat
format.- Parameters:
session
- sessionformat
- text output format- Returns:
- body of text file containing description of modules dependencies.
- Throws:
InternalErrorException
- internal errorPrivilegeException
- insufficient permissions
-
getModulesDependenciesGraph
GraphDTO getModulesDependenciesGraph(PerunSession session, GraphTextFormat format, String attributeName) throws PrivilegeException, AttributeNotExistsException Generates graph describing dependencies for given AttributeDefinition. Text output format can be specified byGraphTextFormat
format.- Parameters:
session
- sessionformat
- text output formatattributeName
- attribute definition which dependencies will be used- Returns:
- body of text file containing description of modules dependencies.
- Throws:
InternalErrorException
- internal errorPrivilegeException
- insufficient permissionsAttributeNotExistsException
-
getNamespaceFromAttributeName
Gets the namespace from the attribute name.PRIVILEGE: No access needed.
- Returns:
- the namespace from the attribute name
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Facility facility) throws FacilityNotExistsException Get facility attributes which are required by all services which are related to this facility.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionfacility
- you get attributes for this facility- Returns:
- list of facility attributes which are required by services
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionFacilityNotExistsException
- if the facility wasn't created from this resource
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Resource resource) throws ResourceNotExistsException Get resource attributes which are required by services which is relatod to this resource.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionresource
- resource for which you want to get the attributes- Returns:
- list of resource attributes which are required by services which are assigned to resource.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exists in underlying data source
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Member member, Resource resource) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Get member-resource attributes which are required by services which are relater to this member-resource.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionmember
- you get attributes for this member and the resourceresource
- you get attributes for this resource and the member- Returns:
- list of member-resource attributes which are required by services which are assigned to resource.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't have access to this resourceMemberResourceMismatchException
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException If workWithUserAttribute is false => Get member-resource attributes which are required by services which are relater to this member-resource. If workWithUserAttributes is true => Get member-resource, user-facility, user and member attributes. (user is get from member and facility from resource)PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionmember
- you get attributes for this member and the resourceresource
- you get attributes for this resource and the memberworkWithUserAttributes
- method can process also user, user-facility and member attributes (user is automatically get from member a facility is get from resource)- Returns:
- list of member-resource attributes or if workWithUserAttributes is true return list of member-resource, user, member and user-facility attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
ResourceNotExistsException
MemberNotExistsException
MemberResourceMismatchException
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Facility facility, User user) throws FacilityNotExistsException, UserNotExistsException Get user-facility attributes which are required by services which are related to this user-facility.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionfacility
- facility from which the services are takenuser
- you get attributes for this user- Returns:
- list of user-facility attributes which are required by services which are assigned to facility.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionFacilityNotExistsException
UserNotExistsException
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Member member, boolean workWithUserAttributes) throws MemberNotExistsException Get member attributes which are required by services which are relater to this member.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionmember
- you get attributes for this memberworkWithUserAttributes
- method can process also user and user-facility attributes (user is automatically get from member a facility is get from resource)- Returns:
- list of member and user attributes which are required by services which are related to this member
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Member member, Group group, boolean workWithUserAttributes) throws MemberNotExistsException, GroupNotExistsException, MemberGroupMismatchException Get member, member-group attributes which are required by services which are relater to this member. If workWithUserAttributes = true, then user attributes are returned too.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionmember
- you get attributes for this membergroup
- you get attributes for this groupworkWithUserAttributes
- if TRUE, return also user attributes- Returns:
- list of member, member-group and optionally user attributes which are required by services which are related to this member
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
GroupNotExistsException
MemberGroupMismatchException
-
getRequiredAttributes
Get user attributes which are required by services which are relater to this user.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun session- Returns:
- list of user's attributes which are required by services which are related to this user
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionUserNotExistsException
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Facility facility) throws FacilityNotExistsException, ServiceNotExistsException Get facility attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionfacility
- you get attributes for this facilityservice
- attribute required by this servis you'll get- Returns:
- list of facility attributes which are required by the service
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionFacilityNotExistsException
- if the facility wasn't created from this resourceServiceNotExistsException
- if the service doesn't exists in underlying data source
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Vo vo) throws VoNotExistsException, ServiceNotExistsException Get vo attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionvo
- you get attributes for this voservice
- attribute required by this service you'll get- Returns:
- list of vo attributes which are required by the service
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionVoNotExistsException
- if the vo wasn't created from this resourceServiceNotExistsException
- if the service doesn't exists in underlying data source
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, List<Service> services, Facility facility) throws FacilityNotExistsException, ServiceNotExistsException Get facility attributes which are required by the services.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionfacility
- you get attributes for this facilityservices
- attributes required by this services you'll get- Returns:
- list of facility attributes which are required by the service
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionFacilityNotExistsException
- if the facility wasn't created from this resourceServiceNotExistsException
- if the service doesn't exists in underlying data source
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource) throws ResourceNotExistsException, ServiceNotExistsException Get resource attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionresource
- resource for which you want to get the attributesservice
- attributes required by this service you'll get- Returns:
- list of resource attributes which are required by the service
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exists in underlying data sourceServiceNotExistsException
- if the service doesn't exists in underlying data source
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, List<Service> services, Resource resource) throws ResourceNotExistsException, ServiceNotExistsException Get resource attributes which are required by the services.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionresource
- you get attributes for this resourceservices
- attributes required by this services you'll get- Returns:
- list of facility attributes which are required by the service
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't existsServiceNotExistsException
- if the service doesn't exists in underlying data source
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource) throws ResourceNotExistsException, ServiceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Get member-resource attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionservice
- attributes required by this services you'll getmember
- you get attributes for this member and the resourceresource
- you get attributes for this resource and the member- Returns:
- list of attributes which are required by the service.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't exists in underlying data sourceServiceNotExistsException
- if the service doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't have access to this resourceMemberResourceMismatchException
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource, boolean workWithUserAttributes) throws ResourceNotExistsException, ServiceNotExistsException, MemberNotExistsException, MemberResourceMismatchException PRIVILEGE: Get only those required attributes principal has access to.!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group, Member member, boolean workWithUserAttributes) throws ResourceNotExistsException, ServiceNotExistsException, MemberNotExistsException, GroupNotExistsException, GroupResourceMismatchException, MemberResourceMismatchException Get member, member-resource and member-group attributes required by the specified service. if workWithUserAttributes == TRUE return also user and user-facility attributesPRIVILEGE: Get only those required attributes principal has access to.
!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
Group and group-resource attributes are not supported in this context !!
- Parameters:
sess
- perun sessionresource
- you get attributes for this resource and the member and groupgroup
- you get attributes for this group and resource and membermember
- you get attributes for this member and the resource and groupservice
- you'll get attributes required by this serviceworkWithUserAttributes
- if TRUE return also user and user-facility attributes- Returns:
- list of attributes which are required by the service.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't exists in underlying data sourceServiceNotExistsException
- if the service doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't have access to this resourceGroupNotExistsException
- if the group doesn't exists in underlying data sourceGroupResourceMismatchException
MemberResourceMismatchException
-
getRequiredAttributes
HashMap<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, Resource resource, List<Member> members, boolean workWithUserAttributes) throws ServiceNotExistsException, ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Get member-resource, member, user-facility and user attributes which are required by service for each member in list of members. If workWithUserAttributes is false return only member-resource attributes.- Parameters:
sess
- perun sessionservice
- attribute required by this serviceresource
- you get attributes for this resourcemembers
- you get attributes for this list of membersworkWithUserAttributes
- if true method can process also user, user-facility and member attributes- Returns:
- map of member objects and his list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionServiceNotExistsException
ResourceNotExistsException
MemberNotExistsException
MemberResourceMismatchException
-
getRequiredAttributes
HashMap<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, Resource resource, List<Member> members) throws ResourceNotExistsException, ServiceNotExistsException, MemberNotExistsException Get member-resource attributes which are required by service for each member in list of members.- Parameters:
sess
- perun sessionservice
- attribute required by this serviceresource
- you get attributes for this resource and the membersmembers
- you get attributes for this list of members and the resource- Returns:
- map of memberID and his list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exists in underlying data sourceServiceNotExistsException
- if the service doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't have access to this resource
-
getRequiredAttributes
HashMap<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Resource resource, Service service, List<Member> members) throws ServiceNotExistsException, ResourceNotExistsException, MemberNotExistsException Get member attributes which are required by service for each member in list of members.- Parameters:
sess
- perun sessionservice
- attribute required by this serviceresource
- resource only to get allowed membersmembers
- you get attributes for this list of members- Returns:
- map of memberID and his list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionServiceNotExistsException
- if the service doesn't exists in underlying data sourceResourceNotExistsException
- if the resource doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't have access to this resource
-
getRequiredAttributes
HashMap<User,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, Facility facility, List<User> users) throws ServiceNotExistsException, FacilityNotExistsException, UserNotExistsException Get user-facility attributes which are required by the service for each user in list of users.- Parameters:
sess
- perun sessionservice
- attribute required by this servicefacility
- you get attributes for this facility and userusers
- you get attributes for this user and facility- Returns:
- map of user and his list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionServiceNotExistsException
- if the service doesn't exists in underlying data sourceFacilityNotExistsException
- if the facility wasn't created from this resourceUserNotExistsException
- if the host doesn't exists in the underlying data source
-
getRequiredAttributes
HashMap<User,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, List<User> users) throws ServiceNotExistsException, UserNotExistsException Get user attributes which are required by the service for each user in list of users.- Parameters:
sess
- perun sessionservice
- attribute required by this serviceusers
- you get attributes for this user and facility- Returns:
- map of user and his list of attributes
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionServiceNotExistsException
- if the service doesn't exists in underlying data sourceUserNotExistsException
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Group group) throws ServiceNotExistsException, MemberNotExistsException, GroupNotExistsException, MemberGroupMismatchException Get member-group attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionmember
- you get attributes for this member and the resourcegroup
- you get attributes for this group in which member is associatedservice
- attribute required by this service you'll get- Returns:
- list of attributes which are required by the service.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
- if the member doesn't exists in underlying data sourceServiceNotExistsException
- if the service doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't have access to this resourceGroupNotExistsException
MemberGroupMismatchException
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Group group, boolean workWithUserAttributes) throws ServiceNotExistsException, MemberNotExistsException, GroupNotExistsException, MemberGroupMismatchException PRIVILEGE: Get only those required attributes principal has access to.!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member) throws ServiceNotExistsException, MemberNotExistsException Get member attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionmember
- you get attributes for this member and the resourceservice
- attribute required by this servis you'll get- Returns:
- list of attributes which are required by the service.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
- if the member doesn't exists in underlying data sourceServiceNotExistsException
- if the service doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't have access to this resource
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group, boolean workWithGroupAttributes) throws ServiceNotExistsException, ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Get group-resource attributes required for the service. !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionservice
- you will get attributes required by this serviceworkWithGroupAttributes
- get also group attributes (which is required by the service) for this group- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionServiceNotExistsException
- if the service doesn't exists in underlying data sourceResourceNotExistsException
GroupNotExistsException
GroupResourceMismatchException
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group) throws ServiceNotExistsException, ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Get group-resource attributes required for the service.PRIVILEGE: Get only those required attributes principal has access to.
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Host host) throws ServiceNotExistsException, HostNotExistsException Get host required attributes for the servicePRIVILEGE: Get only those required attributes principal has access to.
-
getRequiredAttributes
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Group group) throws ServiceNotExistsException, GroupNotExistsException Get group required attributes for the servicePRIVILEGE: Get only those required attributes principal has access to.
-
getRequiredAttributesDefinition
List<AttributeDefinition> getRequiredAttributesDefinition(PerunSession sess, Service service) throws ServiceNotExistsException Get all attributes which are required by service. Required attribues are requisite for Service to run.PRIVILEGE: No access needed.
- Parameters:
sess
- sessservice
- service from which the attributes will be listed- Returns:
- All attributes which are required by service.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionServiceNotExistsException
- if the service doesn't exists in underlying data source
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Get member-resource attributes which are required by services which are defined on "resourceToGetServicesFrom" resource.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionresourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resourcemember
- you get attributes for this member and the resourceresource
- you get attributes for this resource and the member- Returns:
- list of member-resource attributes which are required by services which are assigned to specified resource
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't have access to this resourceMemberResourceMismatchException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Get member-resource attributes which are required by services and if workWithUserAttributes is true also user, user-facility and member attributes. Services are known from the resourceToGetServicesFrom.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionresourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resourcemember
- you get attributes for this member and the resourceresource
- you get attributes for this resource and the memberworkWithUserAttributes
- method can process also user, user-facility and member attributes (user is automatically get from member a facility is get from resource)- Returns:
- list of member-resource attributes (if workWithUserAttributes is true also user, user-facility and member attributes) which are required by services which are assigned to another resource.
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
ResourceNotExistsException
MemberNotExistsException
MemberResourceMismatchException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group) throws ResourceNotExistsException, MemberNotExistsException, GroupNotExistsException, MemberGroupMismatchException Get member-group attributes which are required by services defined on specified resource Services are known from the resourceToGetServicesFrom.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionresourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resourcemember
- you get attributes for this member and the groupgroup
- you get attributes for this group and the member- Returns:
- list of group-resource's attributes which are required by services defined on specified resource
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
MemberNotExistsException
GroupNotExistsException
MemberGroupMismatchException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, GroupNotExistsException, MemberGroupMismatchException Get member-group attributes which are required by services defined on specified resource and if workWithUserAttributes is true also user and member attributes. Services are known from the resourceToGetServicesFrom.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionresourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resourcemember
- you get attributes for this member and the groupgroup
- you get attributes for this group and the memberworkWithUserAttributes
- method can process also user and member attributes (user is automatically get from member)- Returns:
- list of group-resource's attributes which are required by services defined on specified resource
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
MemberNotExistsException
GroupNotExistsException
MemberGroupMismatchException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, Resource resource, User user, Member member) throws ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, MemberResourceMismatchException Get member, user, member-resource and user-facility attributes which are required by services which are defined on "resourceToGetServicesFrom" resource.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionresourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resourceresource
- you get attributes for this resource and the membermember
- you get attributes for this member and the resource- Returns:
- list of member-resource attributes which are required by services which are assigned to specified resource
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
- if the resource doesn't exists in underlying data sourceMemberNotExistsException
- if the member doesn't have access to this resourceFacilityNotExistsException
UserNotExistsException
MemberResourceMismatchException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, User user) throws ResourceNotExistsException, FacilityNotExistsException, UserNotExistsException Get user-facility attributes which are required by services which are defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionresourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resourcefacility
- facility from which the services are takenuser
- you get attributes for this user- Returns:
- list of user-facility attributes which are required by services defined on specified resource
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
FacilityNotExistsException
UserNotExistsException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member) throws MemberNotExistsException, ResourceNotExistsException Get member attributes which are required by services defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionmember
- you get attributes for this memberresourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resource- Returns:
- list of member attributes which are required by services defined on specified resource
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionMemberNotExistsException
ResourceNotExistsException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, User user) throws UserNotExistsException, ResourceNotExistsException Get user attributes which are required by services defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
sess
- perun sessionresourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resource- Returns:
- list of user's attributes which are required by services defined on specified resource
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionUserNotExistsException
ResourceNotExistsException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Host host) throws HostNotExistsException, ResourceNotExistsException Get host attributes which are required by services defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
resourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resource- Returns:
- list of host's attributes which are required by services defined on specified resource
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionHostNotExistsException
ResourceNotExistsException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group) throws ResourceNotExistsException, GroupNotExistsException Get group-resource attributes which are required by services defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
resourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resource- Returns:
- list of group-resource's attributes which are required by services defined on specified resource
- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
GroupNotExistsException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Group group) throws ResourceNotExistsException, GroupNotExistsException Get group attributes which are required by services defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
resourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resource- Returns:
- list of group's attributes which are required by services defined on specified resource
- Throws:
ResourceNotExistsException
GroupNotExistsException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group, boolean workWithGroupAttributes) throws ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Get group-resource attributes which are required by services defined on specified resource Get also group attributes, if workWithGroupAttributes is true.PRIVILEGE: Get only those required attributes principal has access to.
- Parameters:
resourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resourceworkWithGroupAttributes
- if true, get also group required attributes- Returns:
- list of group_resource and (if workWithGroupAttributes is true) group required attributes
- Throws:
ResourceNotExistsException
GroupNotExistsException
GroupResourceMismatchException
-
getResourceRequiredAttributes
List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group, Member member, boolean workWithUserAttributes) throws ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException, MemberNotExistsException, MemberGroupMismatchException, UserNotExistsException, FacilityNotExistsException, MemberResourceMismatchException Get member-group and member-resource attributes required by the services specified on resource Get also user, member, user-facility attributes, if workWithUserAttributes is true.PRIVILEGE: Get only those required attributes principal has access to.
Group and group-resource attributes are not supported in this context !!
- Parameters:
resourceToGetServicesFrom
- getRequired attributes from services which are assigned on this resourceworkWithUserAttributes
- if true, get also user, member and user-facility required attributes- Returns:
- List of required attributes (member-group, member-resource). Return also user, member, user-facility attributes, if workWithUserAttributes is true.
- Throws:
ResourceNotExistsException
GroupNotExistsException
GroupResourceMismatchException
MemberNotExistsException
MemberGroupMismatchException
UserNotExistsException
FacilityNotExistsException
MemberResourceMismatchException
-
isCoreAttribute
Determine if attribute is core attribute.PRIVILEGE: No access needed.
- Returns:
- true if attribute is core attribute
-
isCoreManagedAttribute
Determine if attribute is core-managed attribute.PRIVILEGE: No access needed.
- Returns:
- true if attribute is core-managed
-
isFromNamespace
Determine if attribute is from specified namespace.PRIVILEGE: No access needed.
- Returns:
- true if the attribute is from specified namespace false otherwise
-
isOptAttribute
Determine if attribute is optional (opt) attribute.PRIVILEGE: No access needed.
- Returns:
- true if attribute is optional attribute false otherwise
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) throws PrivilegeException, GroupNotExistsException, ResourceNotExistsException, GroupResourceMismatchException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset all attributes for the group and resource. If workWithGroupAttributes is true, remove also all group attributes.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessiongroup
- group to set onresource
- resource to set onworkWithGroupAttributes
- if true, remove also group attributes, if false, remove only group_resource attributes- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenGroupNotExistsException
- if group not exists in perunResourceNotExistsException
- if resource not exists in perunGroupResourceMismatchException
- if group and resource has not the same voWrongAttributeValueException
- if the attribute value is illegalWrongReferenceAttributeValueException
- if some reference attribute has illegal value
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Facility facility) throws PrivilegeException, FacilityNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset all attributes for the facility.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessionfacility
- remove attributes from this facility- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Facility facility, boolean removeAlsoUserFacilityAttributes) throws PrivilegeException, FacilityNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset all attributes for the facility. If removeAlsoUserFacilityAttributes is true, remove all user-facility attributes of this facility and any user allowed in this facility.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessionfacility
- remove attributes from this facilityremoveAlsoUserFacilityAttributes
- if true, remove all user-facility attributes for any user in this facility too- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenFacilityNotExistsException
- if the facility doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Vo vo) throws PrivilegeException, VoNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset all attributes for the vo.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessionvo
- remove attributes from this vo- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenVoNotExistsException
- if the vo doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Group group) throws PrivilegeException, GroupNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset all attributes for the group.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessiongroup
- remove attributes from this group- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenGroupNotExistsException
- if the group doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Resource resource) throws PrivilegeException, ResourceNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset all attributes for the resource.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessionresource
- remove attributes from this resource- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenResourceNotExistsException
- if the resource doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Member member, Resource resource) throws PrivilegeException, MemberNotExistsException, ResourceNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberResourceMismatchException Unset all attributes for the member on the resource.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessionmember
- remove attributes from this memberresource
- remove attributes on this resource- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenMemberNotExistsException
- if the member doesn't exists in underlying data sourceResourceNotExistsException
- if the resource doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
MemberResourceMismatchException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Member member, Group group) throws PrivilegeException, MemberNotExistsException, GroupNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberGroupMismatchException Unset all attributes for the member in the group.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessiongroup
- remove attributes for this groupmember
- remove attributes from this member- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenMemberNotExistsException
- if the member doesn't exists in underlying data sourceGroupNotExistsException
- if the resource doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
MemberGroupMismatchException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Member member) throws PrivilegeException, MemberNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset all attributes for the member.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessionmember
- remove attributes from this member- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenMemberNotExistsException
- if the member doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Facility facility, User user) throws PrivilegeException, UserNotExistsException, FacilityNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset all attributes for the user on the facility.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessionuser
- remove attributes from this user- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenUserNotExistsException
- if the user doesn't exists in underlying data sourceFacilityNotExistsException
- if the facility doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, User user) throws PrivilegeException, UserNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset all attributes for the user.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessionuser
- remove attributes from this user- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenUserNotExistsException
- if the user doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Host host) throws PrivilegeException, HostNotExistsException, WrongAttributeValueException Unset all attributes for the hostPRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perunsessionhost
- remove attributes from this host- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionHostNotExistsException
- if the host doesn't exists in underlying data sourceWrongAttributeValueException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, Resource resource, Group group) throws PrivilegeException, ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException, WrongAttributeValueException, WrongReferenceAttributeValueException Remove all attributes for group on resourcePRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessionresource
- resource to have attributes removedgroup
- group to have attribute removed- Throws:
PrivilegeException
- if privileges are not givenInternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionResourceNotExistsException
GroupNotExistsException
GroupResourceMismatchException
WrongAttributeValueException
WrongReferenceAttributeValueException
-
removeAllAttributes
void removeAllAttributes(PerunSession sess, UserExtSource ues) throws PrivilegeException, UserExtSourceNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset all attributes for the user external source.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Parameters:
sess
- perun sessionues
- remove attributes from this user external source- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenUserExtSourceNotExistsException
- if the user external source doesn't exists in underlying data sourceWrongAttributeValueException
WrongReferenceAttributeValueException
-
removeAttribute
void removeAttribute(PerunSession sess, Facility facility, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, FacilityNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Unset particular attribute for the facility. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Parameters:
sess
- perun sessionfacility
- remove attribute from this facilityattribute
- attribute to remove- Throws:
InternalErrorException
- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorExceptionPrivilegeException
- if privileges are not givenAttributeNotExistsException
- if the attribute doesn't exists in underlying data source
-