Interface AttributesManagerImplApi
- All Known Implementing Classes:
- AttributesManagerImpl
public interface AttributesManagerImplApi
- Author:
- Michal Prochazka invalid input: '<'michalp@ics.muni.cz>, Slavek Licehammer invalid input: '<'glory@ics.muni.cz>
- 
Method SummaryModifier and TypeMethodDescriptionbooleanattributeExists(PerunSession sess, AttributeDefinition attribute) Check if attribute exists in underlaying data source.voidblockAttributeValue(PerunSession session, Attribute attribute) Blocks the attribute value for future use (optionally in the attribute namespace)voidchangedAttributeHook(PerunSession sess, Facility facility, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, Facility facility, User user, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, Group group, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, Host host, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, Member member, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, Member member, Group group, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, Member member, Resource resource, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, Resource resource, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, Resource resource, Group group, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, UserExtSource ues, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, User user, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, Vo vo, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidchangedAttributeHook(PerunSession sess, String key, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidcheckAttributeExists(PerunSession sess, AttributeDefinition attribute) Check if attribute exists in underlaying data source.voidcheckAttributeSemantics(PerunSession sess, Facility facility, Attribute attribute) Check if value of this facility attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Facility facility, User user, Attribute attribute) Check if value of this user-facility attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Group group, Attribute attribute) Check if value of this group attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Host host, Attribute attribute) Check if value of this host attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Member member, Attribute attribute) Check if value of this member attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Member member, Group group, Attribute attribute) Check if value of this member-group attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Member member, Resource resource, Attribute attribute) Check if value of this member-resource attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Resource resource, Attribute attribute) Check if value of this resource attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Resource resource, Group group, Attribute attribute) Check if value of this group-resource attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, UserExtSource ues, Attribute attribute) Check if value of this user external source attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, User user, Attribute attribute) Check if value of this user attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Vo vo, Attribute attribute) Check if value of this vo attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, String key, Attribute attribute) Check if value of this entityless attribute has valid semantics.voidcheckAttributesExists(PerunSession sess, List<? extends AttributeDefinition> attributes) Batch version of checkAttributeExistsvoidcheckAttributeSyntax(PerunSession sess, Facility facility, Attribute attribute) Check if value of this facility attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Facility facility, User user, Attribute attribute) Check if value of this user-facility attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Group group, Attribute attribute) Check if value of this group attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Host host, Attribute attribute) Check if value of this host attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Member member, Attribute attribute) Check if value of this member attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Member member, Group group, Attribute attribute) Check if value of this member-group attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Member member, Resource resource, Attribute attribute) Check if value of this member-resource attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Resource resource, Attribute attribute) Check if value of this resource attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Resource resource, Group group, Attribute attribute) Check if value of this group-resource attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, UserExtSource ues, Attribute attribute) Check if value of this user external source attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, User user, Attribute attribute) Check if value of this user attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Vo vo, Attribute attribute) Check if value of this vo attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, String key, Attribute attribute) Check if value of this entityless attribute has valid syntax.voidcheckNamespace(PerunSession sess, AttributeDefinition attribute, String namespace) Determine if attribute is from specified namespace.voidcheckNamespace(PerunSession sess, List<? extends AttributeDefinition> attributes, String namespace) Determine if attributes are from specified namespace.intconvertAttributeValuesToNonunique(PerunSession session, AttributeDefinition attrDef) Deletes all values of the attribute from table _attr_u_values which has unique constraint.voidconvertAttributeValuesToUnique(PerunSession session, AttributeDefinition attrDef) Copies all values of the attribute to table _attr_u_values which has unique constraint.createAttribute(PerunSession sess, AttributeDefinition attribute) Creates an attribute, the attribute is stored into the appropriate DB table according to the namespace.decorateMembersWithDefOptMemberAttributes(PerunSession sess, List<RichMember> members, List<String> memberAttrNames) Appends each member with the member attributes (only def and opt) named in the memberAttrNames list if the value of the attribute for the given member is found in the database.decorateMembersWithDefOptUserAttributes(PerunSession sess, List<RichMember> members, List<String> userAttrNames) Appends each member with the user attributes (only def and opt) named in the userAttrNames list if the value of the attribute for the given member(user) is found in the database.voiddeleteAttribute(PerunSession sess, AttributeDefinition attribute) Deletes the attribute.voiddeletedEntityHook(PerunSession sess, User user, Attribute attribute) Executes extra logic for attribute module connected to a user entity being deletedescapeQueryParameters(String value) Escapes QUERY PARAMETER VALUES in URL value.fillAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) This method try to fill value of the user-facility attribute.fillAttribute(PerunSession sess, Group group, Attribute attribute) fillAttribute(PerunSession sess, Host host, Attribute attribute) fillAttribute(PerunSession sess, Member member, Attribute attribute) This method try 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 try to fill value of the member-resource attribute.fillAttribute(PerunSession sess, Resource resource, Attribute attribute) This method try to fill a value of the resource attribute.fillAttribute(PerunSession sess, Resource resource, Group group, Attribute attribute) fillAttribute(PerunSession sess, UserExtSource ues, Attribute attribute) This method try to fill value of the user external source attribute.fillAttribute(PerunSession sess, User user, Attribute attribute) This method try to fill value of the user attribute.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.getAllGroupResourceValues(PerunSession sess, AttributeDefinition attributeDefinition) Get all values for specified group-resource attribute.getAllGroupValues(PerunSession sess, AttributeDefinition attributeDefinition) Get all values for specified group attribute.getAllNamespaces(PerunSession sess) Returns list of all possible namespaces.getAllResourceValues(PerunSession sess, AttributeDefinition attributeDefinition) Get all values for specified resource attribute.getAllSimilarAttributeNames(PerunSession sess, String startingPartOfAttributeName) This method get all similar attr_names which start with partOfAttributeNamegetAllUserFacilityRichAttributes(PerunSession sess, User user) Get all non-empty attributes associated with the user on the all facilities.getAllUserValues(PerunSession sess, AttributeDefinition attributeDefinition) Get all values for specified user attribute.getAnonymizedValue(PerunSession sess, User user, Attribute attribute) Gets anonymized value of the attribute.getAppFormItemsForAppFormAndAttribute(PerunSession sess, int appFormId, AttributeDefinition attr) Returns list of app form items' shortnames for which the given attribute is a source or a destination attribute in the given application formReturns all application forms where the given attribute definition is a source or a destination attribute for any application from itemgetAttribute(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) getAttribute(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) getAttribute(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) getAttributeById(PerunSession sess, Host host, int id) getAttributeById(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) getAttributeById(PerunSession sess, UserExtSource ues, int id) Get particular attribute for the user external source.getAttributeById(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 attributes definition (attribute without defined value).getAttributeDefinitionById(PerunSession sess, int id) Get attibute definition (attribute without defined value).getAttributePolicyCollections(PerunSession sess, int attributeId) Gets attribute policy collections for an attribute definition with given id.getAttributes(PerunSession sess, Facility facility) Get all non-empty attributes associated with the facility.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) getAttributes(PerunSession sess, Host host, List<String> attrNames) Get all attributes associated with the host which have name in list attrNames (empty and virtual too).getAttributes(PerunSession sess, Member member) Get all non-empty attributes associated with the member.getAttributes(PerunSession sess, Member member, Group group) Get all non-empty, non-virtual 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, Resource resource) Get all non-empty attributes associated with the member on the resource.getAttributes(PerunSession sess, Member member, Resource resource, List<String> attrNames) Get all attributes (empty and virtual too) associated with the member on the resource which have name in list attrNames.getAttributes(PerunSession sess, Member member, List<String> attrNames) Get all attributes associated with the member which have name in list attrNames (empty and virtual too).getAttributes(PerunSession sess, Resource resource) Get all non-empty attributes associated with the resource.getAttributes(PerunSession sess, Resource resource, Group group) getAttributes(PerunSession sess, Resource resource, Group group, List<String> attrNames) Get all attributes (empty and virtual too) associated with the group on the resource which have name in list attrNames.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 and virtual too).getAttributes(PerunSession sess, User user, Facility facility, List<String> attrNames) Get all attributes (empty and virtual too) associated with the user on the facility which have name in list attrNames.getAttributes(PerunSession sess, User user, List<String> attrNames) Get all attributes associated with the user which have name in list attrNames (empty and virtual 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 and virtual too).getAttributes(PerunSession sess, String key) Get all entiteless attributes with subject equaled String keygetAttributesByAttributeDefinition(PerunSession sess, AttributeDefinition attributeDefinition) Returns all attributes with not-null value which fits the attributeDefinition.Get attributes definition (attribute without defined value).getAttributesDefinitionByNamespace(PerunSession sess, String namespace) Get attributes definition (attribute without defined value) with specified namespace.getAttributesModule(PerunSession sess, AttributeDefinition attribute) Get the attributeModule for the attributegetCriticalAttributeActions(PerunSession sess, int attrId) Returns critical actions on given attribute.getEntitylessAttributes(PerunSession sess, String attrName) Get all entityless attributes with attributeNamegetEntitylessAttrValueForUpdate(PerunSession sess, int attrId, String key) Return value of entityless attribute by attr_id and key (subject).getEntitylessKeys(PerunSession sess, AttributeDefinition attributeDefinition) Returns list of Keys which fits the attributeDefinition.getEntitylessStringAttributeMapping(PerunSession sess, String attributeName) Gets map from keys to string values for an entityless attribute.getPerunBeanIdsForUniqueAttributeValue(PerunSession sess, Attribute attribute) Finds ids of PerunBeans that have the attribute's value for the attribute.getRequiredAttributes(PerunSession sess, Facility facility) Get facility attributes which are required by all services which are connected to this facility.getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility) Get facility attributes which are required by services.getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, User user) Get user-facility attributes which are required by services.getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Group group) getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Host host) getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member) Get member attributes which are required by services.getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group) Get member-group attributes which are required by services.getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource) Get member-resource attributes which are required by services.getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource) Get resource attributes which are required by services.getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group) 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, Resource resourceToGetServicesFrom, User user) Get user attributes which are required by services.getRequiredAttributes(PerunSession sess, Resource resource, List<Integer> serviceIds) Get resource attributes which are required by services.getRequiredAttributes(PerunSession sess, Service service, Facility facility) Get facility attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Facility facility, User user) Get user-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) getRequiredAttributes(PerunSession sess, Service service, Host host) getRequiredAttributes(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, Resource resource) Get member-resource attributes which are required by the service.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) 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, User user) Get user attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Vo vo) Get vo attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, List<Member> members, Group group) Get member-group attributes which are required by the service, for the given members and the given group.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, List<Service> services, Group group) Get group attributes which are required by the given services.getRequiredAttributes(PerunSession sess, List<Service> services, Resource resource, Group group) Get group-resource attributes which are required by the services.getRequiredAttributesDefinition(PerunSession sess, Service service) Get all attributes which are required by service.getRequiredAttributesForGroups(PerunSession sess, Service service, List<Group> groups) Get group attributes which are required by the given service for given groups.getResourceRequiredAttributesDefinition(PerunSession sess, Resource resource) Get attributes definions required by all services assigned on the resource.getUninitializedAttributesModule(PerunSession sess, AttributeDefinition attribute) Get uninitiated attributeModule for the attributegetUserAttrValueForUpdate(PerunSession sess, int attrId, int userId) Get particular attribute for the user for update - locking the attribute for user.getUserFacilityAttributesForAnyUser(PerunSession sess, Facility facility) Get all non-empty attributes associated with any user on the facility.getUserIdsByLogin(PerunSession sess, String login) Gets IDs of users who use the given login in any namespace.getUserVirtualAttributeModule(PerunSession sess, AttributeDefinition attribute) Get user virtual attribute module by the attribute.getVirtualAttributes(PerunSession sess, Facility facility) Get all virtual attributes associated with the facility.getVirtualAttributes(PerunSession sess, Facility facility, User user) Get all virtual attributes associated with the user on the facility.getVirtualAttributes(PerunSession sess, Group group) Get all virtual attributes associated with the group.getVirtualAttributes(PerunSession sess, Host host) Get all virtual attributes associated with the host.getVirtualAttributes(PerunSession sess, Member member) Get all virtual attributes associated with the member.getVirtualAttributes(PerunSession sess, Member member, Group group) Get all virtual attributes associated with the member in the group.getVirtualAttributes(PerunSession sess, Member member, Resource resource) Get all virtual attributes associated with the member on the resource.getVirtualAttributes(PerunSession sess, Resource resource) Get all virtual attributes associated with the resource.getVirtualAttributes(PerunSession sess, User user) Get all virtual attributes associated with the user.getVirtualAttributes(PerunSession sess, UserExtSource ues) Get all virtual attributes associated with the UserExtSource.getVirtualAttributes(PerunSession sess, Vo vo) Get all virtual attributes associated with the vo.voidinitAndRegisterAttributeModules(PerunSession session, ServiceLoader<AttributesModuleImplApi> modules, Set<AttributeDefinition> allAttributesDef) Init attribute modules map in Impl layer.voidAdd attribute module to attribute module map in Impl layer (if it is not there yet).booleaninsertAttribute(PerunSession sess, Attribute attribute, String tableName, List<String> columnNames, List<Object> columnValues) Insert attribute value in DB.booleanisAttributeActionCritical(PerunSession sess, AttributeDefinition attr, AttributeAction action) Checks if the action is critical on given attribute.booleanisAttributeActionGloballyCritical(PerunSession sess, int attrId, AttributeAction action) Checks if the action is critical on given attribute for all objects.booleanisAttributeRequiredByFacility(PerunSession sess, Facility facility, AttributeDefinition attributeDefinition) Check if this attribute is currently required on this facility.booleanisAttributeRequiredByGroup(PerunSession sess, Group group, AttributeDefinition attributeDefinition) Check if this attribute is currently required on this group.booleanisAttributeRequiredByResource(PerunSession sess, Resource resource, AttributeDefinition attributeDefinition) Check if this attribute is currently required on this resource.booleanisAttributeRequiredByVo(PerunSession sess, Vo vo, AttributeDefinition attributeDefinition) Check if this attribute is currently required on this vo.isAttributeValueBlocked(PerunSession session, Attribute attribute) Checks whether the value of the passed attribute (checks separate key-value pairs and list items as well) is blocked (in namespace if the attribute is namespace based).booleanisCoreAttribute(PerunSession sess, AttributeDefinition attribute) Determine if attribute is core attribute.booleanisCoreManagedAttribute(PerunSession sess, AttributeDefinition attribute) Determine if attribute is core-managed attribute.booleanisDefAttribute(PerunSession sess, AttributeDefinition attribute) Determine if attribute is defined (def) attribute.booleanisFromNamespace(AttributeDefinition attribute, String namespace) Determine if attribute is from specified namespace.booleanisLoginAlreadyUsed(PerunSession sess, String login, String namespace) Check if the login is already in use for some namespace or globallybooleanisOptAttribute(PerunSession sess, AttributeDefinition attribute) Determine if attribute is optional (opt) attribute.booleanisVirtAttribute(PerunSession sess, AttributeDefinition attribute) Determine if attribute is virtual attribute.voidRegister attribute module in Auditer for message listening (if it is not there yet).booleanremoveAllAttributes(PerunSession sess, Facility facility) Unset all attributes for the facility.booleanremoveAllAttributes(PerunSession sess, Facility facility, User user) Unset all (user-facility) non-virtual attributes for the user on the facility.booleanremoveAllAttributes(PerunSession sess, Group group) Unset all attributes for the group.booleanremoveAllAttributes(PerunSession sess, Host host) Unset all user attributes for the host.booleanremoveAllAttributes(PerunSession sess, Member member) Unset all member attributes for the member.booleanremoveAllAttributes(PerunSession sess, Member member, Group group) Unset all attributes for the member in the group.booleanremoveAllAttributes(PerunSession sess, Member member, Resource resource) Unset all (member-resource) attributes for the member on the resource.booleanremoveAllAttributes(PerunSession sess, Resource resource) Unset all attributes for the resource.booleanremoveAllAttributes(PerunSession sess, Resource resource, Group group) Unset all group_resource attributesbooleanremoveAllAttributes(PerunSession sess, User user) Unset all user attributes for the user.booleanremoveAllAttributes(PerunSession sess, UserExtSource ues) Unset all UserExtSource attributes for the user external source.booleanremoveAllAttributes(PerunSession sess, Vo vo) Unset all attributes for the vo.voidremoveAllGroupResourceAttributes(PerunSession sess, Resource resource) Remove all non-virtual group-resource attribute on selected resourcevoidremoveAllMemberResourceAttributes(PerunSession sess, Resource resource) Remove all non-virtual member-resource attributes assigned to resourcebooleanremoveAllUserFacilityAttributes(PerunSession sess, User user) Unset all (user-facility) non-virtual attributes for the user and all facilitiesbooleanremoveAllUserFacilityAttributesForAnyUser(PerunSession sess, Facility facility) Unset all (user-facility) non-virtual attributes for any user on the facility.voidremoveAndUnregisterAttrModule(PerunSession sess, AttributeDefinition attribute) Remove attribute module of the given non-core attribute from attribute module map in Impl layer and unregister the module from Auditer, however only if it is namespace-specific to avoid removing common module from other active namespace-specific modules.booleanremoveAttribute(PerunSession sess, Facility facility, AttributeDefinition attribute) Unset particular attribute for the facility.booleanremoveAttribute(PerunSession sess, Facility facility, User user, AttributeDefinition attribute) Unset particular user-facility attributebooleanremoveAttribute(PerunSession sess, Group group, AttributeDefinition attribute) Unset particular attribute for the group.booleanremoveAttribute(PerunSession sess, Host host, AttributeDefinition attribute) Unset particular host attributebooleanremoveAttribute(PerunSession sess, Member member, AttributeDefinition attribute) Unset particular member attributebooleanremoveAttribute(PerunSession sess, Member member, Group group, AttributeDefinition attribute) Unset particular attribute for the member in the group.booleanremoveAttribute(PerunSession sess, Member member, Resource resource, AttributeDefinition attribute) Unset particular member-resorce attribute for the member on the resource.booleanremoveAttribute(PerunSession sess, Resource resource, AttributeDefinition attribute) Unset particular attribute for the resource.booleanremoveAttribute(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) Unset particular group_resource attributebooleanremoveAttribute(PerunSession sess, UserExtSource ues, AttributeDefinition attribute) Unset particular user external source attributebooleanremoveAttribute(PerunSession sess, User user, AttributeDefinition attribute) Unset particular user attributebooleanremoveAttribute(PerunSession sess, Vo vo, AttributeDefinition attribute) Unset particular attribute for the vo.booleanremoveAttribute(PerunSession sess, String key, AttributeDefinition attribute) Unset particular entityless attribute with subject equals key.voidRemove attribute module from attribute module map in Impl layer.booleanremoveVirtualAttribute(PerunSession sess, Facility facility, User user, AttributeDefinition attribute) Unset particular user-facility virtual attribute value.booleanremoveVirtualAttribute(PerunSession sess, Resource resource, AttributeDefinition attribute) Unset particular resource virtual attribute value.booleanremoveVirtualAttribute(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) Unset particular group-resource virtual attribute value.booleansetAttribute(PerunSession sess, PerunBean bean1, PerunBean bean2, Attribute attribute) Store the particular attribute associated with the bean1 and bean2.booleansetAttribute(PerunSession sess, Object object, Attribute attribute) Store the particular attribute associated with the given perun bean.voidsetAttributeActionCriticality(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.voidsetAttributePolicyCollections(PerunSession sess, List<AttributePolicyCollection> policyCollections) Deletes old attribute policy collections and sets all new attribute policy collections.booleansetAttributeWithNullValue(PerunSession sess, int userId, Attribute attribute) Set user attribute with null value (for user and attribute).booleansetAttributeWithNullValue(PerunSession sess, String key, Attribute attribute) Set entityless attribute with null value (for key and attribute).booleansetVirtualAttribute(PerunSession sess, Facility facility, Attribute attribute) Store the particular virtual attribute associated with the facility.booleansetVirtualAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) Store the particular virtual attribute associated with the facility and user combination.booleansetVirtualAttribute(PerunSession sess, Group group, Attribute attribute) Store the particular virtual attribute associated with the group.booleansetVirtualAttribute(PerunSession sess, Member member, Attribute attribute) Store the particular virtual attribute associated with the member.booleansetVirtualAttribute(PerunSession sess, Member member, Group group, Attribute attribute) Store the particular virtual attribute associated with the member and group combination.booleansetVirtualAttribute(PerunSession sess, Resource resource, Attribute attribute) Store the particular virtual attribute associated with the resource.booleansetVirtualAttribute(PerunSession sess, Resource resource, Group group, Attribute attribute) Store the particular virtual attribute associated with the resource and group combination.booleansetVirtualAttribute(PerunSession sess, UserExtSource ues, Attribute attribute) Store the particular virtual attribute associated with the user external source.booleansetVirtualAttribute(PerunSession sess, User user, Attribute attribute) Store the particular virtual attribute associated with the user.voidUnregister attribute module in Auditer from message listening (if it is not there yet).booleanupdateAttribute(PerunSession sess, Attribute attribute, String tableName, List<String> columnNames, List<Object> columnValues) Update attribute value in DB.updateAttributeDefinition(PerunSession perunSession, AttributeDefinition attributeDefinition) Updates AttributeDefinition.
- 
Method Details- 
attributeExistsCheck if attribute exists in underlaying data source.- Parameters:
- sess- perun session
- attribute- attribute to check
- Returns:
- true if attribute exists in underlaying data source, false othewise
- Throws:
- InternalErrorException- if unexpected error occured
 
- 
blockAttributeValueBlocks the attribute value for future use (optionally in the attribute namespace)- Parameters:
- session-
- attribute-
 
- 
changedAttributeHookIf you need to do some further work with other modules, this method do that- Parameters:
- sess- perun session
- facility-
- attribute-
- Throws:
- InternalErrorException
 
- 
changedAttributeHookIf you need to do some further work with other modules, this method do that- Parameters:
- sess- perun session
- key-
- attribute-
- Throws:
- InternalErrorException
 
- 
changedAttributeHookIf you need to do some further work with other modules, this method do that- Parameters:
- sess-
- vo-
- attribute-
- Throws:
- InternalErrorException
 
- 
changedAttributeHookIf you need to do some further work with other modules, this method do that- Parameters:
- sess-
- host-
- attribute-
- Throws:
- InternalErrorException
 
- 
changedAttributeHookvoid changedAttributeHook(PerunSession sess, Group group, Attribute attribute) throws WrongReferenceAttributeValueException If you need to do some further work with other modules, this method do that- Parameters:
- sess-
- group-
- attribute-
- Throws:
- InternalErrorException
- WrongReferenceAttributeValueException
 
- 
changedAttributeHookvoid changedAttributeHook(PerunSession sess, User user, Attribute attribute) throws WrongReferenceAttributeValueException If you need to do some further work with other modules, this method do that- Parameters:
- sess-
- user-
- attribute-
- Throws:
- InternalErrorException
- WrongReferenceAttributeValueException
 
- 
changedAttributeHookvoid changedAttributeHook(PerunSession sess, Member member, Attribute attribute) throws WrongReferenceAttributeValueException If you need to do some further work with other modules, this method do that- Parameters:
- sess-
- member-
- attribute-
- Throws:
- InternalErrorException
- WrongReferenceAttributeValueException
 
- 
changedAttributeHookIf you need to do some further work with other modules, this method do that- Parameters:
- sess-
- resource-
- group-
- attribute-
- Throws:
- InternalErrorException
 
- 
changedAttributeHookvoid changedAttributeHook(PerunSession sess, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException If you need to do some further work with other modules, this method do that- Parameters:
- sess-
- resource-
- attribute-
- Throws:
- InternalErrorException
- WrongReferenceAttributeValueException
 
- 
changedAttributeHookvoid changedAttributeHook(PerunSession sess, Member member, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException If you need to do some further work with other modules, this method do that- Parameters:
- sess-
- member-
- resource-
- attribute-
- Throws:
- InternalErrorException
- WrongReferenceAttributeValueException
 
- 
changedAttributeHookIf you need to do some further work with other modules, this method do that- Parameters:
- sess-
- member-
- group-
- attribute-
- Throws:
- InternalErrorException
 
- 
changedAttributeHookIf you need to do some further work with other modules, this method do that- Parameters:
- sess-
- facility-
- user-
- attribute-
- Throws:
- InternalErrorException
 
- 
changedAttributeHookIf you need to do some further work with other modules, this method do that- Parameters:
- sess-
- ues-
- attribute-
- Throws:
- InternalErrorException
 
- 
checkAttributeExistsvoid checkAttributeExists(PerunSession sess, AttributeDefinition attribute) throws AttributeNotExistsException Check if attribute exists in underlaying data source.- Parameters:
- sess- perun session
- attribute- attribute to check
- Throws:
- InternalErrorException- if unexpected error occured
- AttributeNotExistsException- if attribute doesn';t exists
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, Facility facility, Attribute attribute) throws WrongReferenceAttributeValueException Check if value of this facility attribute has valid semantics.- Parameters:
- sess- perun session
- facility- facility for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, Vo vo, Attribute attribute) throws WrongReferenceAttributeValueException, WrongAttributeAssignmentException Check if value of this vo attribute has valid semantics.- Parameters:
- sess- perun session
- vo- vo for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
- WrongAttributeAssignmentException
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, Group group, Attribute attribute) throws WrongReferenceAttributeValueException Check if value of this group attribute has valid semantics.- Parameters:
- sess- perun session
- group- group for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException Check if value of this resource attribute has valid semantics.- Parameters:
- sess- perun session
- resource- resource for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, Member member, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException Check if value of this member-resource attribute has valid semantics.- Parameters:
- sess- perun session
- member- member for which (and for specified resource) you want to check validity of attribute
- resource- resource for which (and for specified member) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, Member member, Group group, Attribute attribute) throws WrongReferenceAttributeValueException Check if value of this member-group attribute has valid semantics.- Parameters:
- sess- perun session
- member- member for which (and for specified group) you want to check validity of attribute
- group- group for which (and for specified member) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, Facility facility, User user, Attribute attribute) throws WrongReferenceAttributeValueException Check if value of this user-facility attribute has valid semantics.- Parameters:
- sess- perun session
- facility- facility for which (and for specified user) you want to check validity of attribute
- user- user for which (and for specified facility) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, User user, Attribute attribute) throws WrongReferenceAttributeValueException Check if value of this user attribute has valid semantics.- Parameters:
- sess- perun session
- user- user for which (and for specified facility) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, Member member, Attribute attribute) throws WrongReferenceAttributeValueException Check if value of this member attribute has valid semantics.- Parameters:
- sess- perun session
- member- member for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticsCheck if value of this host attribute has valid semantics.- Parameters:
- sess- perun session
- host- host for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, Resource resource, Group group, Attribute attribute) throws WrongReferenceAttributeValueException Check if value of this group-resource attribute has valid semantics.- Parameters:
- sess- perun session
- resource- resource for which (and for specified group) you want to check validity of attribute
- group- group for which (and for specified member) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticsvoid checkAttributeSemantics(PerunSession sess, String key, Attribute attribute) throws WrongReferenceAttributeValueException Check if value of this entityless attribute has valid semantics.- Parameters:
- sess- perun session
- key- key for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticsCheck if value of this user external source attribute has valid semantics.- Parameters:
- sess- perun session
- ues- user external source for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, Facility facility, Attribute attribute) throws WrongAttributeValueException Check if value of this facility attribute has valid syntax.- Parameters:
- sess- perun session
- facility- facility for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, Vo vo, Attribute attribute) throws WrongAttributeValueException Check if value of this vo attribute has valid syntax.- Parameters:
- sess- perun session
- vo- vo for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeValueException Check if value of this group attribute has valid syntax.- Parameters:
- sess- perun session
- group- group for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, Resource resource, Attribute attribute) throws WrongAttributeValueException Check if value of this resource attribute has valid syntax.- Parameters:
- sess- perun session
- resource- resource for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, Member member, Resource resource, Attribute attribute) throws WrongAttributeValueException Check if value of this member-resource attribute has valid syntax.- Parameters:
- sess- perun session
- member- member for which (and for specified resource) you want to check validity of attribute
- resource- resource for which (and for specified member) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, Member member, Group group, Attribute attribute) throws WrongAttributeValueException Check if value of this member-group attribute has valid syntax.- Parameters:
- sess- perun session
- member- member for which (and for specified group) you want to check validity of attribute
- group- group for which (and for specified member) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, Facility facility, User user, Attribute attribute) throws WrongAttributeValueException Check if value of this user-facility attribute has valid syntax.- Parameters:
- sess- perun session
- facility- facility for which (and for specified user) you want to check validity of attribute
- user- user for which (and for specified facility) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, User user, Attribute attribute) throws WrongAttributeValueException Check if value of this user attribute has valid syntax.- Parameters:
- sess- perun session
- user- user for which (and for specified facility) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, Member member, Attribute attribute) throws WrongAttributeValueException Check if value of this member attribute has valid syntax.- Parameters:
- sess- perun session
- member- member for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, Host host, Attribute attribute) throws WrongAttributeValueException Check if value of this host attribute has valid syntax.- Parameters:
- sess- perun session
- host- host for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, Resource resource, Group group, Attribute attribute) throws WrongAttributeValueException Check if value of this group-resource attribute has valid syntax.- Parameters:
- sess- perun session
- resource- resource for which (and for specified group) you want to check validity of attribute
- group- group for which (and for specified resource) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, String key, Attribute attribute) throws WrongAttributeValueException Check if value of this entityless attribute has valid syntax.- Parameters:
- sess- perun session
- key- key for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxvoid checkAttributeSyntax(PerunSession sess, UserExtSource ues, Attribute attribute) throws WrongAttributeValueException Check if value of this user external source attribute has valid syntax.- Parameters:
- sess- perun session
- ues- user external source for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributesExistsvoid checkAttributesExists(PerunSession sess, List<? extends AttributeDefinition> attributes) throws AttributeNotExistsException Batch version of checkAttributeExists- Throws:
- AttributeNotExistsException
 
- 
checkNamespacevoid checkNamespace(PerunSession sess, AttributeDefinition attribute, String namespace) throws WrongAttributeAssignmentException Determine if attribute is from specified namespace.- Parameters:
- sess-
- attribute-
- namespace-
- Throws:
- WrongAttributeAssignmentException- if the attribute isn't from specified namespace
 
- 
checkNamespacevoid checkNamespace(PerunSession sess, List<? extends AttributeDefinition> attributes, String namespace) throws WrongAttributeAssignmentException Determine if attributes are from specified namespace.- Parameters:
- sess-
- attributes-
- namespace-
- Throws:
- WrongAttributeAssignmentException- if any of the attribute isn't from specified namespace
 
- 
convertAttributeValuesToNonuniqueDeletes all values of the attribute from table _attr_u_values which has unique constraint. And returns how many rows were deleted.
- 
convertAttributeValuesToUniqueCopies all values of the attribute to table _attr_u_values which has unique constraint.
- 
createAttributeAttributeDefinition createAttribute(PerunSession sess, AttributeDefinition attribute) throws AttributeDefinitionExistsException Creates an attribute, the attribute is stored into the appropriate DB table according to the namespace.- Parameters:
- sess-
- attribute- attribute to create
- Returns:
- attribute with set id
- Throws:
- AttributeDefinitionExistsException- if attribute already exists
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
decorateMembersWithDefOptMemberAttributesList<RichMember> decorateMembersWithDefOptMemberAttributes(PerunSession sess, List<RichMember> members, List<String> memberAttrNames) Appends each member with the member attributes (only def and opt) named in the memberAttrNames list if the value of the attribute for the given member is found in the database.- Parameters:
- sess- perun session
- members- to decorate with the given member attributes
- memberAttrNames- list of the member attribute names
- Returns:
- the original list of RichMembers with added member attributes
- Throws:
- InternalErrorException- if RuntimeErrorException has been thrown
 
- 
decorateMembersWithDefOptUserAttributesList<RichMember> decorateMembersWithDefOptUserAttributes(PerunSession sess, List<RichMember> members, List<String> userAttrNames) Appends each member with the user attributes (only def and opt) named in the userAttrNames list if the value of the attribute for the given member(user) is found in the database.- Parameters:
- sess- perun session
- members- to decorate with the given user attributes
- userAttrNames- list of the user attribute names
- Returns:
- the original list of RichMembers with added user attributes
- Throws:
- InternalErrorException- if RuntimeErrorException has been thrown
 
- 
deleteAttributeDeletes the attribute. Definition and all values.- Parameters:
- sess-
- attribute- attribute to delete
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
escapeQueryParametersEscapes QUERY PARAMETER VALUES in URL value. Does not modify domain or parameters names. e.g. 'domain/?vo=vo name' => 'domain/?vo=vo+name'
- 
deletedEntityHookExecutes extra logic for attribute module connected to a user entity being deleted- Parameters:
- sess-
- user-
- attribute-
 
- 
fillAttributeThis method try to fill a value of the resource attribute. Value may be copied from some facility attribute.- Parameters:
- sess- perun session
- resource- resource, attribute of which you want to fill
- attribute- attribute to fill. If attributes already have set value, this value won't be owerwriten. 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 InternalErrorException
 
- 
fillAttributeThis method try to fill value of the member-resource attribute. This value is automatically generated, but not all atrributes can be filled this way.- Parameters:
- sess- perun session
- member- attribute of this member (and resource) and you want to fill
- resource- attribute of this resource (and member) and you want to fill
- attribute- attribute to fill. If attributes already have set value, this value won't be owerwriten. 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 InternalErrorException
 
- 
fillAttributeThis method tries to fill value of the member-group attribute. This value is automatically generated, but not all attributes can be filled this way.- Parameters:
- sess- perun session
- member- attribute of this member (and group) you want to fill
- group- attribute of this group you want to fill
- attribute- 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 InternalErrorException
 
- 
fillAttributeThis method try to fill value of the user-facility attribute. This value is automatically generated, but not all atrributes can be filled this way.- Parameters:
- sess- perun session
- facility- attribute of this facility (and user) and you want to fill
- user- attribute of this user (and facility) and you want to fill
- attribute- attribute to fill. If attributes already have set value, this value won't be owerwriten. 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 InternalErrorException
 
- 
fillAttributeThis method try to fill value of the user attribute. This value is automatically generated, but not all atrributes can be filled this way.- Parameters:
- sess- perun session
- user- attribute of this user (and facility) and you want to fill
- attribute- attribute to fill. If attributes already have set value, this value won't be owerwriten. 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 InternalErrorException
 
- 
fillAttributeThis method try to fill value of the member attribute. This value is automatically generated, but not all atrributes can be filled this way.- Parameters:
- sess- perun session
- member- attribute of this member (and facility) and you want to fill
- attribute- attribute to fill. If attributes already have set value, this value won't be owerwriten. 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 InternalErrorException
 
- 
fillAttribute
- 
fillAttribute
- 
fillAttribute
- 
fillAttributeThis method try to fill value of the user external source attribute. This value is automatically generated, but not all atrributes can be filled this way.- Parameters:
- sess- perun session
- ues- attribute of this user external source you want to fill
- attribute- attribute to fill. If attributes already have set value, this value won't be owerwriten. 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 InternalErrorException
 
- 
getAllAttributesStartWithNameWithoutNullValueList<Attribute> getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Group group, String startPartOfName) 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 session
- group- to get the attributes from
- startPartOfName- 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 InternalErrorException
 
- 
getAllAttributesStartWithNameWithoutNullValueList<Attribute> getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Resource resource, String startPartOfName) 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 session
- resource- to get the attributes from
- startPartOfName- 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 InternalErrorException
 
- 
getAllGroupResourceValuesGet all values for specified group-resource attribute. Atibute can't be core or virt.- Parameters:
- sess-
- attributeDefinition- attribute definition, namespace group-resource
- Returns:
- Throws:
- InternalErrorException
 
- 
getAllGroupValuesGet all values for specified group attribute. Atibute can't be core or virt.- Parameters:
- sess-
- attributeDefinition- attribute definition, namespace group
- Returns:
- Throws:
- InternalErrorException
 
- 
getAllNamespacesReturns list of all possible namespaces.- Parameters:
- sess- session
- Returns:
- list of namespaces
 
- 
getAllResourceValuesGet all values for specified resource attribute. Atibute can't be core or virt.- Parameters:
- sess-
- attributeDefinition- attribute definition, namespace resource
- Returns:
- Throws:
- InternalErrorException
 
- 
getAllSimilarAttributeNamesThis method get all similar attr_names which start with partOfAttributeName- Parameters:
- sess-
- startingPartOfAttributeName- is something like: urn:perun:user_facility:attribute-def:def:login-namespace:
- Returns:
- list of similar attribute names like: urn:perun:user_facility:attribute-def:def:login-namespace:cesnet etc.
- Throws:
- InternalErrorException
- AttributeNotExistsException
 
- 
getAllUserFacilityRichAttributesGet all non-empty attributes associated with the user on the all facilities. This method doesn't use cache.- Parameters:
- sess- perun session
- user-
- Returns:
- list of attributes
- Throws:
- InternalErrorException
 
- 
getAllUserValuesGet all values for specified user attribute. Atibute can't be core or virt.- Parameters:
- sess-
- attributeDefinition- attribute definition, namespace user
- Returns:
- Throws:
- InternalErrorException
 
- 
getAnonymizedValueAttribute getAnonymizedValue(PerunSession sess, User user, Attribute attribute) throws AnonymizationNotSupportedException Gets anonymized value of the attribute.- Parameters:
- sess- perun session
- user- user
- attribute- attribute to get anonymized value from
- Returns:
- attribute with anonymized value
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AnonymizationNotSupportedException- if the module doesn't exist or it doesn't implement this method
 
- 
getAppFormItemsForAppFormAndAttributeList<String> getAppFormItemsForAppFormAndAttribute(PerunSession sess, int appFormId, AttributeDefinition attr) Returns list of app form items' shortnames for which the given attribute is a source or a destination attribute in the given application form- Parameters:
- sess- session
- appFormId- id of application form
- attr- attribute definition
- Returns:
- list of shortnames
 
- 
getAppFormsWhereAttributeRelatedReturns all application forms where the given attribute definition is a source or a destination attribute for any application from item- Parameters:
- sess- session
- attr- attribute definition
- Returns:
- list of application forms where the given attribute definition has relation to any application form item
 
- 
getAttributeAttribute getAttribute(PerunSession sess, Facility facility, String attributeName) throws AttributeNotExistsException Get particular attribute for the facility.- Parameters:
- facility- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeAttribute getAttribute(PerunSession sess, Vo vo, String attributeName) throws AttributeNotExistsException Get particular attribute for the vo.- Parameters:
- vo- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeAttribute getAttribute(PerunSession sess, Group group, String attributeName) throws AttributeNotExistsException Get particular attribute for the group.- Parameters:
- group- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeAttribute getAttribute(PerunSession sess, Resource resource, String attributeName) throws AttributeNotExistsException Get particular attribute for the resource.- Parameters:
- resource- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeAttribute getAttribute(PerunSession sess, Member member, Resource resource, String attributeName) throws AttributeNotExistsException Get particular attribute for the member on this resource.- Parameters:
- member- to get attribute from
- resource- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeAttribute getAttribute(PerunSession sess, Member member, Group group, String attributeName) throws AttributeNotExistsException Get particular attribute for the member in this group.- Parameters:
- sess- perun session
- member- to get attribute from
- group- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlying data source
 
- 
getAttributeAttribute getAttribute(PerunSession sess, Member member, String attributeName) throws AttributeNotExistsException Get particular attribute for the member.- Parameters:
- member- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeAttribute getAttribute(PerunSession sess, Facility facility, User user, String attributeName) throws AttributeNotExistsException Get particular attribute for the user on this facility.- 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 InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeAttribute getAttribute(PerunSession sess, User user, String attributeName) throws AttributeNotExistsException Get particular attribute for the user.- Parameters:
- sess-
- user-
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeAttribute getAttribute(PerunSession sess, Host host, String attributeName) throws AttributeNotExistsException - Throws:
- AttributeNotExistsException
 
- 
getAttributeAttribute getAttribute(PerunSession sess, Resource resource, Group group, String attributeName) throws AttributeNotExistsException - Throws:
- AttributeNotExistsException
 
- 
getAttributeAttribute getAttribute(PerunSession sess, String key, String attributeName) throws AttributeNotExistsException Get particular entityless attribute- Parameters:
- sess- perun session
- key- key to get attribute for
- attributeName-
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeAttribute getAttribute(PerunSession sess, UserExtSource ues, String attributeName) throws AttributeNotExistsException Get particular attribute for the User External Source.- Parameters:
- sess-
- ues-
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeByIdAttribute getAttributeById(PerunSession sess, Facility facility, int id) throws AttributeNotExistsException Get particular attribute for the facility.- Parameters:
- facility- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeByIdGet particular attribute for the vo.- Parameters:
- vo- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeByIdAttribute getAttributeById(PerunSession sess, Resource resource, int id) throws AttributeNotExistsException Get particular attribute for the resource.- Parameters:
- resource- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeByIdAttribute getAttributeById(PerunSession sess, Member member, Resource resource, int id) throws AttributeNotExistsException Get particular attribute for the member on this resource.- Parameters:
- member- to get attribute from
- resource- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeByIdAttribute getAttributeById(PerunSession sess, Member member, Group group, int id) throws AttributeNotExistsException Get particular attribute for the member in this group.- Parameters:
- sess- perun session
- member- to get attribute from
- group- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlying data source
 
- 
getAttributeByIdAttribute getAttributeById(PerunSession sess, Member member, int id) throws AttributeNotExistsException Get particular attribute for the member.- Parameters:
- sess-
- member-
- id- attribute id
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeByIdAttribute getAttributeById(PerunSession sess, Facility facility, User user, int id) throws AttributeNotExistsException Get particular attribute for the user on this facility.- Parameters:
- sess-
- facility-
- user-
- id- attribute id
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeByIdGet particular attribute for the user.- Parameters:
- sess-
- user-
- id- attribute id
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeById- Throws:
- AttributeNotExistsException
 
- 
getAttributeByIdAttribute getAttributeById(PerunSession sess, Resource resource, Group group, int id) throws AttributeNotExistsException - Throws:
- AttributeNotExistsException
 
- 
getAttributeByIdAttribute getAttributeById(PerunSession sess, Group group, int id) throws AttributeNotExistsException - Throws:
- AttributeNotExistsException
 
- 
getAttributeByIdAttribute getAttributeById(PerunSession sess, UserExtSource ues, int id) throws AttributeNotExistsException Get particular attribute for the user external source.- Parameters:
- sess-
- ues-
- id- attribute id
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeDefinitionAttributeDefinition getAttributeDefinition(PerunSession sess, String attributeName) throws AttributeNotExistsException Get attributes definition (attribute without defined value).- 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 InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributeDefinitionByIdAttributeDefinition getAttributeDefinitionById(PerunSession sess, int id) throws AttributeNotExistsException Get attibute definition (attribute without defined value).- Parameters:
- id- attribute id
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
 
- 
getAttributePolicyCollectionsGets attribute policy collections for an attribute definition with given id.- Parameters:
- sess- perun session
- attributeId- id of the attribute definition
- Returns:
- all policy collections of the attribute definition
- Throws:
- InternalErrorException
 
- 
getAttributesGet all non-empty attributes associated with the facility.- Parameters:
- sess- perun session
- facility- facility to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all attributes associated with the facility which have name in list attrNames (empty too). Virtual attribute too.- Parameters:
- sess- perun session
- facility- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all non-empty attributes associated with the vo.- Parameters:
- sess- perun session
- vo- vo to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all non-empty attributes associated with the group.- Parameters:
- sess- perun session
- group- group to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all non-empty attributes associated with the resource.- Parameters:
- sess- perun session
- resource- resource to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all non-empty attributes associated with the member on the resource.- Parameters:
- sess- perun session
- member- to get the attributes from
- resource- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all non-empty, non-virtual attributes associated with the member in the group.- Parameters:
- sess- perun session
- member- to get the attributes from
- group- group to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesList<Attribute> 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.- Parameters:
- sess- perun session
- member- to get the attributes from
- group- group to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesList<Attribute> getAttributes(PerunSession sess, Member member, Resource resource, List<String> attrNames) Get all attributes (empty and virtual too) associated with the member on the resource which have name in list attrNames.- Parameters:
- sess- perun session
- member- to get the attributes from
- resource- resource to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesList<Attribute> getAttributes(PerunSession sess, Resource resource, Group group, List<String> attrNames) Get all attributes (empty and virtual too) associated with the group on the resource which have name in list attrNames.- Parameters:
- sess- perun session
- resource- to get the attributes for
- group- to get the attributes for
- attrNames- list of attributes names
- Returns:
- list of selected attributes for group and resource objects
- Throws:
- InternalErrorException
 
- 
getAttributesList<Attribute> getAttributes(PerunSession sess, User user, Facility facility, List<String> attrNames) Get all attributes (empty and virtual too) associated with the user on the facility which have name in list attrNames.- Parameters:
- sess- perun session
- user- to get the attributes from
- facility- facility to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all non-empty attributes associated with the member.- Parameters:
- sess- perun session
- member- member to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all attributes associated with the vo which have name in list attrNames (empty and virtual too).- Parameters:
- sess- perun session
- vo- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all attributes associated with the member which have name in list attrNames (empty and virtual too).- Parameters:
- sess- perun session
- member- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all attributes associated with the group which have name in list attrNames (empty too).- Parameters:
- sess- perun session
- group- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raises in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all attributes associated with the resource which have name in list attrNames (empty too).- Parameters:
- sess- perun session
- resource- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raises in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all attributes associated with the UserExtSource which have name in list attrNames (empty and virtual too).- Parameters:
- sess- perun session
- ues- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesGet all non-empty attributes associated with the user on the facility.- Parameters:
- sess- perun session
- facility-
- user-
- Returns:
- list of attributes
- Throws:
- InternalErrorException
 
- 
getAttributesGet all entiteless attributes with subject equaled String key- Parameters:
- sess-
- key-
- Returns:
- Throws:
- InternalErrorException
 
- 
getAttributesGet all non-empty attributes associated with the user.- Parameters:
- sess- perun session
- user-
- Returns:
- list of attributes
- Throws:
- InternalErrorException
 
- 
getAttributesGet all attributes associated with the user which have name in list attrNames (empty and virtual too).- Parameters:
- sess- perun session
- user- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributes
- 
getAttributesGet all attributes associated with the host which have name in list attrNames (empty and virtual too). Empty list attrNames will return no attributes.- Parameters:
- sess- perun session
- host- host to get attributes for
- attrNames- list of attributes' names
- Returns:
- list of attributes
 
- 
getAttributes
- 
getAttributesGet all non-empty attributes associated with the UserExtSource.- Parameters:
- sess- perun session
- ues- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException
 
- 
getAttributesByAttributeDefinitionList<Attribute> getAttributesByAttributeDefinition(PerunSession sess, AttributeDefinition attributeDefinition) Returns all attributes with not-null value which fits the attributeDefinition. Can't process core or virtual attributes.- Parameters:
- sess-
- attributeDefinition-
- Returns:
- list of attributes
- Throws:
- InternalErrorException
 
- 
getAttributesDefinitionGet attributes definition (attribute without defined value).- Returns:
- List of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getAttributesDefinitionByNamespaceGet attributes definition (attribute without defined value) with specified namespace.- 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
 
- 
getAttributesModuleGet the attributeModule for the attribute- Parameters:
- attribute- get the attribute module for this attribute
- See Also:
 
- 
getCriticalAttributeActionsReturns critical actions on given attribute.- Parameters:
- sess- session
- attrId- attribute definition id
- Returns:
- list of critical actions
 
- 
getEntitylessAttrValueForUpdateString getEntitylessAttrValueForUpdate(PerunSession sess, int attrId, String key) throws AttributeNotExistsException Return value of entityless attribute by attr_id and key (subject). Value is in the format from DB. IMPORTANT: return only values in String (special format for Map or List)!If value is null, return null. If attribute with subject=key not exists, create new one with null value and return null. - Parameters:
- sess-
- attrId-
- key-
- Returns:
- attr_value in string
- Throws:
- InternalErrorException- if runtime error exception has been thrown
- AttributeNotExistsException- throw exception if attribute with value not exists in DB
 
- 
getEntitylessAttributesGet all entityless attributes with attributeName- Parameters:
- sess- perun session
- attrName-
- Returns:
- attribute
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getEntitylessKeysReturns list of Keys which fits the attributeDefinition.- Parameters:
- sess-
- attributeDefinition-
- Returns:
- Throws:
- InternalErrorException
 
- 
getEntitylessStringAttributeMappingMap<String,String> getEntitylessStringAttributeMapping(PerunSession sess, String attributeName) throws AttributeNotExistsException Gets map from keys to string values for an entityless attribute.- Parameters:
- sess- not used
- attributeName- full attribute name
- Returns:
- unordered hashmap
- Throws:
- AttributeNotExistsException
 
- 
getPerunBeanIdsForUniqueAttributeValueSet<Pair<Integer,Integer>> getPerunBeanIdsForUniqueAttributeValue(PerunSession sess, Attribute attribute) Finds ids of PerunBeans that have the attribute's value for the attribute.See AttributesManagerBl.getPerunBeanIdsForUniqueAttributeValue(PerunSession, Attribute)for details.
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility) Get facility attributes which are required by services. Services are known from the resource.- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- facility- you get attributes for this facility
- Returns:
- list of facility 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 InternalErrorException
 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Resource resource, List<Integer> serviceIds) Get resource attributes which are required by services.- Parameters:
- sess- perun session
- resource-
- serviceIds-
- Returns:
- list of resource attributes which are required by services which are selceted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource) Get resource attributes which are required by services. Services are known from the resourceToGetServicesFrom.- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- resource- 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 InternalErrorException
 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member) Get member attributes which are required by services. Services are known from the resourceToGetServicesFrom.- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- member- you get attributes for this member
- Returns:
- list of member 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 InternalErrorException
 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource) Get member-resource attributes which are required by services. Services are known from the resourceToGetServicesFrom.- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- member- you get attributes for this member and the resource
- resource- you get attributes for this resource and the member
- Returns:
- list of member-resource 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
 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, User user) Get user-facility attributes which are required by services. Services are known from the resource.- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- facility- facility from which the services are taken
- user- you get attributes for this user
- Returns:
- list of member-resource 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
 
- 
getRequiredAttributes
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, User user) Get user attributes which are required by services. Services are known from the resource.- Parameters:
- sess- perun session
- resourceToGetServicesFrom-
- user- you get attributes for this user
- Returns:
- list of user 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 InternalErrorException
 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Host host) 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Group group) 
- 
getRequiredAttributesGet facility attributes which are required by all services which are connected to this facility.- Parameters:
- sess- perun session
- facility- you get attributes for this facility
- Returns:
- list of facility attributes which are required by all services which are connected to this facility.
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getRequiredAttributesGet facility attributes which are required by the service.- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- facility- you get attributes for this facility
- 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 InternalErrorException
 
- 
getRequiredAttributesGet vo attributes which are required by the service.- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- vo- you get attributes for this vo
- 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 InternalErrorException
 
- 
getRequiredAttributesGet resource attributes which are required by the service.- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- resource- resource for which you want to get the attributes
- 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 InternalErrorException
 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource) Get member-resource attributes which are required by the service.- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- member- you get attributes for this member and the resource
- resource- 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 InternalErrorException
 
- 
getRequiredAttributesHashMap<Member,List<Attribute>> 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.- Parameters:
- sess- perun session
- service- attribute required by this service
- resource- you get attributes for this resource and the members
- members- you get attributes for this list of members and the resource
- Returns:
- map of member and his list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getRequiredAttributesHashMap<Member,List<Attribute>> 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.- Parameters:
- sess- perun session
- resource- resource only to get allowed members
- service- attribute required by this service
- members- you get attributes for this list of members
- Returns:
- map of member and his list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getRequiredAttributesHashMap<User,List<Attribute>> 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.- Parameters:
- sess- perun session
- service- attribute required by this service
- facility- you get attributes for this facility and user
- users- you get attributes for this user and facility
- Returns:
- map of userID and his list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getRequiredAttributesHashMap<User,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, List<User> users) Get user attributes which are required by the service for each user in list of users.- Parameters:
- sess- perun session
- service- attribute required by this service
- users- you get attributes for this user and facility
- Returns:
- map of userID and his list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Group group) Get member-group attributes which are required by the service.- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- member- you get attributes for this member and the group
- group- you get attributes for this group in which member is associated
- Returns:
- list of attributes which are required by the service.
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getRequiredAttributesMap<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, List<Member> members, Group group) Get member-group attributes which are required by the service, for the given members and the given group.- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- members- you get attributes for this member and the group
- group- you get attributes for these groups in which member is associated
- Returns:
- list of attributes which are required by the service.
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group) Get member-group attributes which are required by services. Services are known from the resourceToGetServicesFrom.- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- member- you get attributes for this member and the group
- group- you get attributes for this group and the member
- Returns:
- list of member-group 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
 
- 
getRequiredAttributesGet member attributes which are required by the service.- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- 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 InternalErrorException
 
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, Service service, Facility facility, User user) Get user-facility attributes which are required by the service.- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- facility-
- user-
- Returns:
- list of attributes which are required by the service.
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getRequiredAttributesGet user attributes which are required by the service.- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- user-
- Returns:
- list of attributes which are required by the service.
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getRequiredAttributes
- 
getRequiredAttributesList<Attribute> getRequiredAttributes(PerunSession sess, List<Service> services, Resource resource, Group group) Get group-resource attributes which are required by the services.- Parameters:
- sess- session
- services- services
- resource- resource
- group- group
- Returns:
- list of attributes which are required by the service.
 
- 
getRequiredAttributes
- 
getRequiredAttributes
- 
getRequiredAttributesGet group attributes which are required by the given services.- Parameters:
- sess- session
- services- services
- group- group
- Returns:
- list of group attributes which are required by the given services
 
- 
getRequiredAttributesDefinitionGet all attributes which are required by service. Required attribues are requisite for Service to run.- Parameters:
- sess- sess
- service- 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 InternalErrorException
 
- 
getRequiredAttributesForGroupsMap<Group,List<Attribute>> getRequiredAttributesForGroups(PerunSession sess, Service service, List<Group> groups) Get group attributes which are required by the given service for given groups.- Parameters:
- sess- session
- service- service for which are taken the required attributes
- groups- groups
- Returns:
- attributes mapped by their groups
 
- 
getResourceRequiredAttributesDefinitionList<AttributeDefinition> getResourceRequiredAttributesDefinition(PerunSession sess, Resource resource) Get attributes definions required by all services assigned on the resource.- Parameters:
- sess- perun session
- resource-
- Returns:
- attributes definions required by all services assigned on the resource.
- Throws:
- InternalErrorException
 
- 
getUninitializedAttributesModuleAttributesModuleImplApi getUninitializedAttributesModule(PerunSession sess, AttributeDefinition attribute) Get uninitiated attributeModule for the attribute- Parameters:
- attribute- get the attribute module for this attribute
- See Also:
 
- 
getUserAttrValueForUpdateString getUserAttrValueForUpdate(PerunSession sess, int attrId, int userId) throws AttributeNotExistsException Get particular attribute for the user for update - locking the attribute for user.- Parameters:
- sess-
- attrId-
- userId-
- Returns:
- attribute value
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- AttributeNotExistsException- if the attribute doesn't exists in the underlying data source
 
- 
getUserFacilityAttributesForAnyUserGet all non-empty attributes associated with any user on the facility.- Parameters:
- sess- perun session
- facility-
- Returns:
- list of attributes
- Throws:
- InternalErrorException
 
- 
getUserIdsByLoginGets IDs of users who use the given login in any namespace.- Parameters:
- sess- perun session
- login- login
- Returns:
- list of user IDs
 
- 
getUserVirtualAttributeModuleUserVirtualAttributesModuleImplApi getUserVirtualAttributeModule(PerunSession sess, AttributeDefinition attribute) Get user virtual attribute module by the attribute.- Parameters:
- sess-
- attribute- attribute for which you get the module
- Returns:
- instance of user attribute module
- Throws:
- InternalErrorException
- WrongModuleTypeException
- ModuleNotExistsException
 
- 
getVirtualAttributesGet all virtual attributes associated with the facility.- Parameters:
- sess- perun session
- facility- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getVirtualAttributesGet all virtual attributes associated with the member.- Parameters:
- sess- perun session
- member- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getVirtualAttributesGet all virtual attributes associated with the vo.- Parameters:
- sess- perun session
- vo- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getVirtualAttributesGet all virtual attributes associated with the group.- Parameters:
- sess- perun session
- group- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getVirtualAttributesGet all virtual attributes associated with the host.- Parameters:
- sess- perun session
- host- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getVirtualAttributesGet all virtual attributes associated with the resource.- Parameters:
- sess- perun session
- resource- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getVirtualAttributesGet all virtual attributes associated with the member on the resource.- Parameters:
- sess- perun session
- member- to get the attributes from
- resource- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getVirtualAttributesGet all virtual attributes associated with the user on the facility.- Parameters:
- sess- perun session
- facility- to get the attributes from
- user- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getVirtualAttributesGet all virtual attributes associated with the member in the group.- Parameters:
- sess- perun session
- member- to get the attributes from
- group- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getVirtualAttributesGet all virtual attributes associated with the user.- Parameters:
- sess- perun session
- user- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
getVirtualAttributesGet all virtual attributes associated with the UserExtSource.- Parameters:
- sess- perun session
- ues- to get the attributes from
- Returns:
- list of attributes
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
initAndRegisterAttributeModulesvoid initAndRegisterAttributeModules(PerunSession session, ServiceLoader<AttributesModuleImplApi> modules, Set<AttributeDefinition> allAttributesDef) Init attribute modules map in Impl layer. And register them in Auditer for message listening.- Parameters:
- modules- List of attribute module class instances
- See Also:
 
- 
initAttributeModuleAdd attribute module to attribute module map in Impl layer (if it is not there yet).- Parameters:
- module- module to add
- See Also:
 
- 
insertAttributeboolean insertAttribute(PerunSession sess, Attribute attribute, String tableName, List<String> columnNames, List<Object> columnValues) Insert attribute value in DB.- Parameters:
- sess- perun session
- attribute- that will be stored in the DB
- tableName- in the database in which the attribute will be inserted
- columnNames- of the database table in which the attribute will be written
- columnValues- of the objects, for which the attribute will be written, corresponding to the columnNames
- Returns:
- true if new value differs from old value (i.e. values changed) false otherwise (value do not change)
 
- 
isAttributeActionCriticalboolean isAttributeActionCritical(PerunSession sess, AttributeDefinition attr, AttributeAction action) Checks if the action is critical on given attribute.- Parameters:
- sess- session
- attr- attribute definition
- action- critical action
- Returns:
- true if action is critical, false otherwise
 
- 
isAttributeActionGloballyCriticalChecks if the action is critical on given attribute for all objects.- Parameters:
- sess- session
- attrId- attribute definition id
- action- critical action
- Returns:
- true if action is globally critical, false otherwise
 
- 
isAttributeValueBlockedChecks whether the value of the passed attribute (checks separate key-value pairs and list items as well) is blocked (in namespace if the attribute is namespace based). Throws exception with details if blocked- Parameters:
- session-
- attribute-
- Returns:
- pair, the left being a boolean - true if value blocked, right being a string providing further information, mainly for the complex attribute types (e.g. which key-value pair is blocked, etc.)
 
- 
isAttributeRequiredByFacilityboolean isAttributeRequiredByFacility(PerunSession sess, Facility facility, AttributeDefinition attributeDefinition) Check if this attribute is currently required on this facility. Attribute can be from any namespace.- Parameters:
- sess-
- facility-
- attributeDefinition-
- Returns:
- Throws:
- InternalErrorException
 
- 
isAttributeRequiredByGroupboolean isAttributeRequiredByGroup(PerunSession sess, Group group, AttributeDefinition attributeDefinition) Check if this attribute is currently required on this group. Attribute can be from any namespace.- Parameters:
- sess-
- group-
- attributeDefinition-
- Returns:
- Throws:
- InternalErrorException
 
- 
isAttributeRequiredByResourceboolean isAttributeRequiredByResource(PerunSession sess, Resource resource, AttributeDefinition attributeDefinition) Check if this attribute is currently required on this resource. Attribute can be from any namespace.- Parameters:
- sess-
- resource-
- attributeDefinition-
- Returns:
- Throws:
- InternalErrorException
 
- 
isAttributeRequiredByVoCheck if this attribute is currently required on this vo. Attribute can be from any namespace.- Parameters:
- sess-
- vo-
- attributeDefinition-
- Returns:
- Throws:
- InternalErrorException
 
- 
isCoreAttributeDetermine if attribute is core attribute.- Parameters:
- sess-
- attribute-
- Returns:
- true if attribute is core attribute
 
- 
isCoreManagedAttributeDetermine if attribute is core-managed attribute.- Parameters:
- sess-
- attribute-
- Returns:
- true if attribute is core-managed
 
- 
isDefAttributeDetermine if attribute is defined (def) attribute.- Parameters:
- sess-
- attribute-
- Returns:
- true if attribute is defined attribute false otherwise
 
- 
isFromNamespaceDetermine if attribute is from specified namespace.- Parameters:
- attribute-
- namespace-
- Returns:
- true if the attribute is from specified namespace false otherwise
 
- 
isLoginAlreadyUsedCheck if the login is already in use for some namespace or globally- Parameters:
- sess- perun session
- login- login to be checked
- namespace- login can be checked for given namespace or globally, if namespace is null
- Returns:
- true if login is already in use
 
- 
isOptAttributeDetermine if attribute is optional (opt) attribute.- Parameters:
- sess-
- attribute-
- Returns:
- true if attribute is optional attribute false otherwise
 
- 
isVirtAttributeDetermine if attribute is virtual attribute.- Parameters:
- sess-
- attribute-
- Returns:
- true if attribute is virtual
 
- 
registerAttributeModuleRegister attribute module in Auditer for message listening (if it is not there yet).- Parameters:
- module- module to register
- See Also:
 
- 
removeAllAttributesUnset all attributes for the facility.- Parameters:
- sess- perun session
- facility- remove attributes from this facility
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all attributes for the vo.- Parameters:
- sess- perun session
- vo- remove attributes from this vo
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all attributes for the group.- Parameters:
- sess- perun session
- group- remove attributes from this group
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all attributes for the resource.- Parameters:
- sess- perun session
- resource- remove attributes from this resource
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all (member-resource) attributes for the member on the resource.- Parameters:
- sess- perun session
- member- remove attributes from this member
- resource- remove attributes from this resource
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all attributes for the member in the group.- Parameters:
- sess- perun session
- member- remove attributes from this member
- group- remove attributes for this group
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all member attributes for the member.- Parameters:
- sess- perun session
- member-
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all (user-facility) non-virtual attributes for the user on the facility.- Parameters:
- sess- perun session
- facility-
- user-
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all user attributes for the user.- Parameters:
- sess- perun session
- user-
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all user attributes for the host.- Parameters:
- sess- perun session
- host-
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all group_resource attributes- Parameters:
- sess- perun session
- resource- Resource
- group- Group
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllAttributesUnset all UserExtSource attributes for the user external source.- Parameters:
- sess- perun session
- ues-
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllGroupResourceAttributesRemove all non-virtual group-resource attribute on selected resource- Parameters:
- sess-
- resource-
- Throws:
- InternalErrorException
 
- 
removeAllMemberResourceAttributesRemove all non-virtual member-resource attributes assigned to resource- Parameters:
- sess-
- resource-
- Throws:
- InternalErrorException
 
- 
removeAllUserFacilityAttributesUnset all (user-facility) non-virtual attributes for the user and all facilities- Parameters:
- sess- perun session
- user-
- Returns:
- trueif attributes was deleted or- falseif attributes was not deleted
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAllUserFacilityAttributesForAnyUserUnset all (user-facility) non-virtual attributes for any user on the facility.- Parameters:
- sess- perun session
- facility-
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAndUnregisterAttrModuleRemove attribute module of the given non-core attribute from attribute module map in Impl layer and unregister the module from Auditer, however only if it is namespace-specific to avoid removing common module from other active namespace-specific modules. If no namespace-specific modules remain for the attribute, the common module will not be removed. To remove the common module, pass the common definition as parameter.- Parameters:
- sess- sess
- attribute- attribute of which module to remove
 
- 
removeAttributeUnset particular attribute for the facility.- Parameters:
- sess- perun session
- facility- remove attribute from this facility
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeUnset particular entityless attribute with subject equals key.- Parameters:
- sess- perun session
- key- subject of entityless attribute
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeUnset particular attribute for the vo.- Parameters:
- sess- perun session
- vo- remove attribute from this vo
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeUnset particular attribute for the group.- Parameters:
- sess- perun session
- group- remove attribute from this group
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeUnset particular attribute for the resource.- Parameters:
- sess- perun session
- resource- remove attribute from this resource
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeboolean removeAttribute(PerunSession sess, Member member, Resource resource, AttributeDefinition attribute) Unset particular member-resorce attribute for the member on the resource.- Parameters:
- sess- perun session
- member- remove attribute from this member
- resource- remove attributes for this resource
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeboolean removeAttribute(PerunSession sess, Member member, Group group, AttributeDefinition attribute) Unset particular attribute for the member in the group. Core attributes can't be removed this way.- Parameters:
- sess- perun session
- member- remove attribute from this member
- group- remove attributes for this group
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeUnset particular member attribute- Parameters:
- sess- perun session
- member-
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeboolean removeAttribute(PerunSession sess, Facility facility, User user, AttributeDefinition attribute) Unset particular user-facility attribute- Parameters:
- sess- perun session
- facility-
- user-
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeUnset particular user attribute- Parameters:
- sess- perun session
- user-
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeUnset particular host attribute- Parameters:
- sess- perun session
- host-
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeboolean removeAttribute(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) Unset particular group_resource attribute- Parameters:
- sess- perun session
- resource- resource
- group- group
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeUnset particular user external source attribute- Parameters:
- sess- perun session
- ues-
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeAttributeModuleRemove attribute module from attribute module map in Impl layer.- Parameters:
- module- module to remove
- See Also:
 
- 
removeVirtualAttributeboolean removeVirtualAttribute(PerunSession sess, Facility facility, User user, AttributeDefinition attribute) Unset particular user-facility virtual attribute value.- Parameters:
- sess- perun session
- facility-
- user-
- attribute- attribute to remove
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
 
- 
removeVirtualAttributeboolean removeVirtualAttribute(PerunSession sess, Resource resource, AttributeDefinition attribute) throws WrongAttributeValueException, WrongReferenceAttributeValueException Unset particular resource virtual attribute value.- Parameters:
- sess-
- resource-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeVirtualAttributeboolean removeVirtualAttribute(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) Unset particular group-resource virtual attribute value.- Parameters:
- sess-
- resource-
- group-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- InternalErrorException
 
- 
setAttributeboolean setAttribute(PerunSession sess, Object object, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException Store the particular attribute associated with the given perun bean. If an attribute is core attribute then the attribute isn't stored (It's skkiped whithout any notification).- Parameters:
- sess- perun session
- object- object of setting the attribute, must be one of perunBean or string
- attribute- attribute to set
- Returns:
- true if new value differs from old value (i.e. values changed) false otherwise (value do not change)
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeAssignmentException- if the namespace of the attribute does not match the perunBean
- WrongAttributeValueException
 
- 
setAttributeboolean setAttribute(PerunSession sess, PerunBean bean1, PerunBean bean2, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException Store the particular attribute associated with the bean1 and bean2. If an attribute is core attribute then the attribute isn't stored (It's skkiped whithout any notification).- Parameters:
- sess- perun session
- bean1- first perun bean
- bean2- second perun bean
- attribute- attribute to set
- Returns:
- true if new value differs from old value (i.e. values changed) false otherwise (value do not change)
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- WrongAttributeAssignmentException
- WrongAttributeValueException
 
- 
setAttributeActionCriticalityvoid setAttributeActionCriticality(PerunSession sess, AttributeDefinition attr, AttributeAction action, boolean critical, boolean global) throws RelationExistsException, RelationNotExistsException Marks the action on attribute as critical, which may require additional authentication of user performing that action on attribute.- Parameters:
- sess- session
- attr- attribute definition
- action- critical action
- critical- true if action should be set critical, false to non-critical
- global- true if action should be globally critical, false if action should be critical only for critical objects
- Throws:
- RelationExistsException- if trying to mark already critical action
- RelationNotExistsException- if trying to unmark not critical action
 
- 
setAttributePolicyCollectionsvoid setAttributePolicyCollections(PerunSession sess, List<AttributePolicyCollection> policyCollections) Deletes old attribute policy collections and sets all new attribute policy collections.- Parameters:
- sess- perun session
- policyCollections- list of policy collections to set
- Throws:
- InternalErrorException
 
- 
setAttributeWithNullValueSet entityless attribute with null value (for key and attribute). Shouldn't be called from upper layer !!!- Parameters:
- sess-
- key- key for storing entityless attribute
- attribute- attribute to set
- Returns:
- true if insert is ok
- Throws:
- InternalErrorException- if runtimeException is thrown
 
- 
setAttributeWithNullValueSet user attribute with null value (for user and attribute). Shouldn't be called from upper layer !!!- Parameters:
- sess-
- userId- ID of User to store attribute for
- attribute- attribute to set
- Returns:
- true if insert is ok
- Throws:
- InternalErrorException- if runtimeException is thrown
 
- 
setVirtualAttributeboolean setVirtualAttribute(PerunSession sess, Facility facility, Attribute attribute) throws WrongReferenceAttributeValueException Store the particular virtual attribute associated with the facility.- Parameters:
- sess- perun session
- facility-
- attribute- attribute to set
- Returns:
- true if attribute was really changed
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- ModuleNotExistsException
- WrongModuleTypeException
- WrongReferenceAttributeValueException
 
- 
setVirtualAttributeboolean setVirtualAttribute(PerunSession sess, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException Store the particular virtual attribute associated with the resource.- Parameters:
- sess- perun session
- resource-
- attribute- attribute to set
- Returns:
- true if attribute was really changed
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- ModuleNotExistsException
- WrongModuleTypeException
- WrongReferenceAttributeValueException
 
- 
setVirtualAttributeStore the particular virtual attribute associated with the group.- Parameters:
- sess- perun session
- group-
- attribute- attribute to set
- Returns:
- true if attribute was really changed
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- ModuleNotExistsException
- WrongModuleTypeException
 
- 
setVirtualAttributeboolean setVirtualAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) throws WrongReferenceAttributeValueException Store the particular virtual attribute associated with the facility and user combination.- Parameters:
- sess- perun session
- facility-
- user-
- attribute- attribute to set
- Returns:
- true if attribute was really changed
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- ModuleNotExistsException
- WrongModuleTypeException
- WrongReferenceAttributeValueException
 
- 
setVirtualAttributeboolean setVirtualAttribute(PerunSession sess, Resource resource, Group group, Attribute attribute) throws WrongReferenceAttributeValueException Store the particular virtual attribute associated with the resource and group combination.- Parameters:
- sess- perun session
- resource-
- group-
- attribute- attribute to set
- Returns:
- true if attribute was really changed
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- ModuleNotExistsException
- WrongModuleTypeException
- WrongReferenceAttributeValueException
 
- 
setVirtualAttributeStore the particular virtual attribute associated with the member and group combination.- Parameters:
- sess- perun session
- member- member to set on
- group- group to set on
- attribute- attribute to set
- Returns:
- true if attribute was really changed
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- ModuleNotExistsException
- WrongModuleTypeException
 
- 
setVirtualAttributeStore the particular virtual attribute associated with the member.- Parameters:
- sess- perun session
- member-
- attribute- attribute to set
- Returns:
- true if attribute was really changed
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- ModuleNotExistsException
- WrongModuleTypeException
 
- 
setVirtualAttributeStore the particular virtual attribute associated with the user.- Parameters:
- sess- perun session
- user-
- attribute- attribute to set
- Returns:
- true if attribute was really changed
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- ModuleNotExistsException
- WrongModuleTypeException
 
- 
setVirtualAttributeStore the particular virtual attribute associated with the user external source.- Parameters:
- sess- perun session
- ues-
- attribute- attribute to set
- Returns:
- true if attribute was really changed
- Throws:
- InternalErrorException- if an exception raise in concrete implementation, the exception is wrapped in InternalErrorException
- ModuleNotExistsException
- WrongModuleTypeException
 
- 
unregisterAttributeModuleUnregister attribute module in Auditer from message listening (if it is not there yet).- Parameters:
- module- module to unregister
- See Also:
 
- 
updateAttributeboolean updateAttribute(PerunSession sess, Attribute attribute, String tableName, List<String> columnNames, List<Object> columnValues) Update attribute value in DB.- Parameters:
- sess- perun session
- attribute- that will be stored in the DB
- tableName- in the database for updating
- columnNames- of the database table in which the attribute will be written
- columnValues- of the objects, for which the attribute will be written, corresponding to the columnNames
- Returns:
- true if new value differs from old value (i.e. values changed) false otherwise (value do not change)
 
- 
updateAttributeDefinitionAttributeDefinition updateAttributeDefinition(PerunSession perunSession, AttributeDefinition attributeDefinition) Updates AttributeDefinition.- Parameters:
- perunSession-
- attributeDefinition-
- Returns:
- returns updated attributeDefinition
- Throws:
- InternalErrorException
 
 
-