Class AttributesManagerBlImpl
- All Implemented Interfaces:
- AttributesManagerBl
- Author:
- Slavek Licehammer glory@ics.muni.cz
- 
Constructor SummaryConstructorsConstructorDescriptionAttributesManagerBlImpl(AttributesManagerImplApi attributesManagerImpl) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidblockAttributeValue(PerunSession session, Attribute attribute) Blocks the attribute value for future use (optionally in the attribute namespace)voidcheckAttributeAssignment(PerunSession sess, AttributeDefinition attributeDefinition, PerunBean handler) Check if attribute is from the same namespace as it's handlervoidcheckAttributeAssignment(PerunSession sess, AttributeDefinition attributeDefinition, PerunBean handler1, PerunBean handler2) Check if attribute is from the same namespace as combination of perunBean handlers.voidcheckAttributeDependencies(PerunSession sess, RichAttribute richAttr) This method check validity of value on all attributes which depends on the attributes in richAttr object.voidcheckAttributeExists(PerunSession sess, AttributeDefinition attribute) 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 the value of this host attribute has valid semanticsvoidcheckAttributeSemantics(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 semanticsvoidcheckAttributeSemantics(PerunSession sess, UserExtSource ues, Attribute attribute) Check if value of this user ext 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 the value of this entityless attribute has valid semanticsvoidcheckAttributesExists(PerunSession sess, List<? extends AttributeDefinition> attributes) voidcheckAttributesSemantics(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<Attribute> attributes) Check if value of attributes has valid semantics.voidcheckAttributesSemantics(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) Check if value of attributes has valid semantics.voidcheckAttributesSemantics(PerunSession sess, Facility facility, User user, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Facility facility, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Group group, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Host host, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Member member, Group group, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Member member, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttribute) batch version of checkAttributeSemantics with workWithGroupAttributes parameter If workWithGroupAttributes is true, checks whether attribute is group-resource or group attribute.voidcheckAttributesSemantics(PerunSession sess, Resource resource, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, UserExtSource ues, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, User user, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSemantics(PerunSession sess, Vo vo, List<Attribute> attributes) Batch version of checkAttributeSemanticsvoidcheckAttributesSyntax(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<Attribute> attributes) Check if value of attributes has valid syntax.voidcheckAttributesSyntax(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) Check if value of attributes has valid syntax.voidcheckAttributesSyntax(PerunSession sess, Facility facility, User user, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Facility facility, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Group group, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Host host, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Member member, Group group, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Member member, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttribute) batch version of checkAttributeSyntax with workWithGroupAttributes parameter.voidcheckAttributesSyntax(PerunSession sess, Resource resource, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, UserExtSource ues, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, User user, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributesSyntax(PerunSession sess, Vo vo, List<Attribute> attributes) Batch version of checkAttributeSyntaxvoidcheckAttributeSyntax(PerunSession sess, Facility facility, Attribute attribute) Batch version of checkAttributeSemanticsvoidcheckAttributeSyntax(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 the 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 syntaxvoidcheckAttributeSyntax(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 the value of this entityless attribute has valid syntaxvoidcheckGroupIsFromTheSameVoLikeResource(PerunSession sess, Group group, Resource resource) Check if group is assigned on resource.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.intconvertAttributeToNonunique(PerunSession session, int attrId) Converts attribute to nonunique.voidconvertAttributeToUnique(PerunSession session, int attrId) Converts attribute to unique.createAttribute(PerunSession sess, AttributeDefinition attribute) Creates an attribute, the attribute is stored into the appropriate DB table according to the namespace Also tries to initialize its attribute module and register the module for listening Auditer messages.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.voiddeleteAttribute(PerunSession sess, AttributeDefinition attributeDefinition, boolean force) Deletes the attribute.voiddeletedEntityHook(PerunSession sess, User user, Attribute attribute) Executes extra logic for attribute module connected to a user entity being deletedvoiddoTheMagic(PerunSession sess, Member member) Same as doTheMagic(sess, member, false);voiddoTheMagic(PerunSession sess, Member member, boolean trueMagic) This function takes all member-related attributes (member, user, member-resource, user-facility) and tries to fill them and set them.static StringescapeListAttributeValue(String value) static StringescapeMapAttributeValue(String value) escapeQueryParameters(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) This method tries to fill value of the host 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) This method tries to fill value of group-resource attribute.fillAttribute(PerunSession sess, UserExtSource ues, Attribute attribute) This method tries to fill value of the user external source attribute.fillAttribute(PerunSession sess, User user, Attribute attribute) This method try to fill value of the user attribute.fillAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) This method try to fill value of the user, member, member-resource and user-facility attributes.fillAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes, boolean returnOnlyAttributesWithChangedValue) This method try to fill value of the user, member, member-resource and user-facility attributes.fillAttributes(PerunSession sess, Facility facility, User user, List<Attribute> attributes) Batch version of fillAttribute.fillAttributes(PerunSession sess, Group group, List<Attribute> groupReqAttributes) fillAttributes(PerunSession sess, Host host, List<Attribute> attributes) Batch version of fillAttribute.fillAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes) Batch version of fillAttribute.fillAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) fillAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) Batch version of fillAttribute.fillAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) fillAttributes(PerunSession sess, Member member, List<Attribute> attributes) Batch version of fillAttribute.fillAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) Batch version of fillAttribute.fillAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttributes) fillAttributes(PerunSession sess, Resource resource, List<Attribute> attributes) Batch version of fillAttribute.fillAttributes(PerunSession sess, UserExtSource ues, List<Attribute> attributes) Batch version of fillAttribute.fillAttributes(PerunSession sess, User user, List<Attribute> attributes) Batch version of fillAttribute.voidforceCheckAttributeSemantics(PerunSession sess, Group group, Attribute attribute) Check if value of this group attribute has valid semantics no matter if attribute is required or not.voidforceCheckAttributeSemantics(PerunSession sess, Resource resource, Attribute attribute) Check if value of this resource attribute has valid semantics no matter if attribute is required or not.voidforceCheckAttributesSemantics(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) Check if value of attributes has valid semantics.getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Group group, String startPartOfName) Get all non-empty attributes associated with the group starts with name startPartOfName.getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Resource resource, String startPartOfName) Get all non-empty attributes associated with the resource starts with name startPartOfName.getAllNamespaces(PerunSession sess) Returns list of all possible namespaces.getAllSimilarAttributeNames(PerunSession sess, String startingPartOfAttributeName) This method get all similar attr_names which start with partOfAttributeNamegetAllValues(PerunSession sess, AttributeDefinition attributeDefinition) Get all values for specified 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) Get particular attribute for the hostgetAttribute(PerunSession sess, Member member, Group group, String attributeName) Get particular attribute for the member in this group.getAttribute(PerunSession sess, Member member, Resource resource, String attributeName) Get particular attribute for the member on this resource.getAttribute(PerunSession sess, Member member, String attributeName) Get particular attribute for the member.getAttribute(PerunSession sess, Resource resource, Group group, String attributeName) Get particular group attribute on the resourcegetAttribute(PerunSession sess, Resource resource, String attributeName) Get particular attribute for the resource.getAttribute(PerunSession sess, UserExtSource ues, String attributeName) Get particular attribute for the User External Source.getAttribute(PerunSession sess, User user, String attributeName) Get particular attribute for the user.getAttribute(PerunSession sess, Vo vo, String attributeName) Get particular attribute for the vo.getAttribute(PerunSession sess, String key, String attributeName) Get particular entityless attributegetAttributeById(PerunSession sess, Facility facility, int id) Get particular attribute for the facility.getAttributeById(PerunSession sess, Facility facility, User user, int id) Get particular attribute for the user on this facility.getAttributeById(PerunSession sess, Group group, int id) Get particular group attributegetAttributeById(PerunSession sess, Host host, int id) Get particular attribute for the hostgetAttributeById(PerunSession sess, Member member, int id) Get particular attribute for the member.getAttributeById(PerunSession sess, Member member, Group group, int id) Get particular attribute for the member in this group.getAttributeById(PerunSession sess, Member member, Resource resource, int id) Get particular attribute for the member on this resource.getAttributeById(PerunSession sess, Resource resource, int id) Get particular attribute for the resource.getAttributeById(PerunSession sess, Resource resource, Group group, int id) Get particular group-resource attributegetAttributeById(PerunSession sess, UserExtSource ues, int id) Get particular attribute for the user external sourcegetAttributeById(PerunSession sess, User user, int id) Get particular attribute for the user.getAttributeById(PerunSession sess, Vo vo, int id) Get particular attribute for the vo.getAttributeDefinition(PerunSession sess, String attributeName) Get attribute definition (attribute without defined value).getAttributeDefinitionById(PerunSession sess, int id) Get attribute definition (attribute without defined value).getAttributeForUpdate(PerunSession sess, User user, String attributeName) Get particular attribute for the user for update - locking the attribute for user.Generates graph describing dependencies of attribute modules.getAttributeModulesDependenciesGraphAsString(PerunSession session, GraphTextFormat format) Generates graph describing attribute modules dependencies.getAttributeModulesDependenciesGraphAsString(PerunSession session, GraphTextFormat format, AttributeDefinition attributeDefinition) Generates graph describing dependencies for given AttributeDefinition.getAttributePolicyCollections(PerunSession sess, int attributeId) Gets attribute policy collections for an attribute definition with given id.getAttributeRules(PerunSession sess, int attributeId) Gets attribute rules containing policy collections and critical actions for an attribute definition with given idgetAttributes(PerunSession sess, Facility facility) Get all non-empty attributes associated with the facility.getAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member) Get all non-empty member, user, member-resource and user-facility attributes.getAttributes(PerunSession sess, Facility facility, User user) Get all non-empty attributes associated with the user on the facility.getAttributes(PerunSession sess, Facility facility, List<String> attrNames) Get all attributes associated with the facility which have name in list attrNames (empty too).getAttributes(PerunSession sess, Group group) Get all non-empty attributes associated with the group.getAttributes(PerunSession sess, Group group, Member member, Resource resource, List<String> attrNames, boolean workWithUserAttributes) Gets selected attributes associated with the member, group and the resource.getAttributes(PerunSession sess, Group group, List<String> attrNames) Get all attributes associated with the group which have name in list attrNames (empty too).getAttributes(PerunSession sess, Host host) Get all non-empty attributes associated with the hostgetAttributes(PerunSession sess, Host host, List<String> attrNames) Get all attributes associated with the host which have name in list attrNames (empty and virtual too).getAttributes(PerunSession sess, Member member) Get all non-empty attributes associated with the member.getAttributes(PerunSession sess, Member member, boolean workWithUserAttributes) Get all non-empty attributes associated with the member and if workWithUserAttributes is true, get all non-empty attributes associated with user, who is this member.getAttributes(PerunSession sess, Member member, Group group) Get all non-empty attributes associated with the member in the group.getAttributes(PerunSession sess, Member member, Group group, boolean workWithUserAttributes) Get all attributes associated with the member in the group and if workWithUserAttributes is true, gets also all non-empty user and member attributes.getAttributes(PerunSession sess, Member member, Group group, List<String> attrNames) Get all attributes (empty and virtual too) associated with the member in the group which have name in list attrNames.getAttributes(PerunSession sess, Member member, Group group, List<String> attrNames, boolean workWithUserAttributes) Get all attributes associated with the member in the group which have name in list attrNames (empty too).getAttributes(PerunSession sess, Member member, Resource resource) Get all non-empty attributes associated with the member on the resource.getAttributes(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) Gets all non-empty attributes associated with the member on the resource and if workWithUserAttributes is true, gets also all non-empty user, user-facility and member attributes.getAttributes(PerunSession sess, Member member, Resource resource, List<String> attrNames, boolean workWithUserAttributes) Gets selected non-empty attributes associated with the member and the resource.getAttributes(PerunSession sess, Member member, List<String> attrNames) Get all attributes associated with the member which have name in list attrNames (empty and virtual too).getAttributes(PerunSession sess, Member member, List<String> attrNames, boolean workWithUserAttributes) Get all attributes associated with the member which have name in list attrNames (empty too) Virtual attributes too.getAttributes(PerunSession sess, Resource resource) Get all non-empty attributes associated with the resource.getAttributes(PerunSession sess, Resource resource, Group group) Get all non-empty attributes associated with the group on resource.getAttributes(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) getAttributes(PerunSession sess, Resource resource, Group group, Member member, List<String> attrNames) Get all attributes by the list of attrNames if they are in one of these namespaces: - member - group - member-group - resource - member-resource - group-resource - user (get from member object) - facility (get from resource object) - user-facilitygetAttributes(PerunSession sess, Resource resource, Group group, List<String> attrNames, boolean workWithGroupAttributes) Get selected attributes associated with the group on resource.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, 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 entityless attributes with subject equaled String keygetAttributesByAttributeDefinition(PerunSession sess, AttributeDefinition attributeDefinition) Returns all attributes with not-null value which fits the attributeDefinition.Get all attributes definition (attribute without defined value).getAttributesDefinition(PerunSession sess, List<String> listOfAttributesNames) From listOfAttributesNames get list of attributeDefinitionsgetAttributesDefinitionByNamespace(PerunSession sess, String namespace) Get attributes definition (attribute without defined value) with specified namespace.getAttributesDefinitionWithRights(PerunSession sess, List<PerunBean> entities) Get all (for entities) attributeDefinitions which user has right to READ them and fill attribute writable (if user has also right to WRITE them).getCriticalAttributeActions(PerunSession sess, int attrId) Returns critical actions on given attribute.getEntitylessAttributeForUpdate(PerunSession sess, String key, String attrName) Returns entityless attribute by attr_id and key (subject) for update!getEntitylessAttributes(PerunSession sess, String attrName) Get all entityless attributes with attributeNamegetEntitylessAttributesWithKeys(PerunSession sess, String attrName) Get entityless attributes mapped by their keys.getEntitylessAttributesWithKeys(PerunSession sess, String attrName, List<String> keys) Get entityless attributes mapped by their keys.getEntitylessKeys(PerunSession sess, AttributeDefinition attributeDefinition) Returns list of Keys which fits the attributeDefinition.getEntitylessStringAttributeMapping(PerunSession sess, String attributeName) Gets map from keys to string values for an entityless attribute.getFriendlyNameFromAttributeName(String attributeName) Gets the friendly name from the attribute name.Returns list of definitions of IdP attributes that are filled to fedInfogetLogins(PerunSession sess, User user) Get all non-empty attributes with user's logins.getNamespaceFromAttributeName(String attributeName) Gets the namespace from the attribute name.getPerunBeanIdsForUniqueAttributeValue(PerunSession sess, Attribute attribute) Finds ids of PerunBeans that have the attribute's value for the attribute.Gets the perunBl.getRequiredAttributes(PerunSession sess, Facility facility) Get facility attributes which are required by all services which are connected to this facility.getRequiredAttributes(PerunSession sess, Facility facility, User user) Get user-facility attributes which are required by services which are related to this user-facility.getRequiredAttributes(PerunSession sess, Member member, boolean workWithUserAttributes) Get member attributes which are required by services which are relater to this member and if is workWithUserAttributes = true, then also user required attributesgetRequiredAttributes(PerunSession sess, Member member, Group group, boolean workWithUserAttributes) Get member, member-group attributes which are required by services which are related to this member and group.getRequiredAttributes(PerunSession sess, Member member, Resource resource) Get member-resource attributes which are required by services which are relater to this member-resource.getRequiredAttributes(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) If workWithUserAttribute is false => Get member-resource attributes which are required by services which are relater to this member-resource.getRequiredAttributes(PerunSession sess, Resource resource) Get resource attributes which are required by services which is related to this resource.getRequiredAttributes(PerunSession sess, Resource resource, Service service, List<Member> members) Get member attributes which are required by service for each member in list of members. !!!getRequiredAttributes(PerunSession sess, Service service, Facility facility) Get facility attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Facility facility, Resource resource, User user, Member member) Get memner, user, member-resource, user-facility attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Facility facility, Resource resource, List<Member> members, boolean workWithUserAttributes) Get member-resource, member, user-facility and user attributes which are required by service for each member in list of members.getRequiredAttributes(PerunSession sess, Service service, 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) Get host attributes which are required by servicegetRequiredAttributes(PerunSession sess, Service service, Member member) Get member attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Member member, Group group) Get member-group attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Member member, Group group, boolean workWithUserAttributes) getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource) Get member-resource attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource, boolean workWithUserAttributes) 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, Group group, boolean withGroupAttributes) Get group-resource attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group, Member member, boolean workWithUserAttributes) Get member, member-resource and member-group attributes which are required by the service. if workWithUserAttributes == TRUE return also user and user-facility attributesgetRequiredAttributes(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, User user) Get user attributes which are required by services which are relater to this user.getRequiredAttributes(PerunSession sess, List<Service> services, Facility facility, Resource resource, User user, Member member) Get member, user, member-resource, user-facility attributes which are required by the services.getRequiredAttributes(PerunSession sess, List<Service> services, Resource resource) Get resource attributes which are required by selected services.getRequiredAttributes(PerunSession sess, List<Service> services, Resource resource, Group group, boolean withGroupAttributes) 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.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility) Get facility attributes which are required by services.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, Resource resource, User user, Member member) Get member, user, member-resource and user-facility attributes which are required by services which are defined on "resourceToGetServicesFrom" resource.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, User user) Get user-facility attributes which are required by services.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Group group) getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Host host) Get the host attributes which are required by services.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member) Get member attributes which are required by services defined on specified resourcegetResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group) Get member-group attributes which are required by services.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group, boolean workWithUserAttributes) Get member-group attributes which are required by services if workWithUserAttributes is true also user and member attributes.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource) Get member-resource attributes which are required by services.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource, boolean workWithUserAttributes) Get member-resource attributes which are required by services and if workWithUserAttributes is true also user, user-facility and member attributes.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource) Get resource attributes which are required by services.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group) Get the group-resource attributes which are required by services.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group, boolean workWithGroupAttributes) getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, User user) Get user attributes which are required by services.getResourceRequiredAttributesDefinition(PerunSession sess, Resource resource) Get attributes definions required by all services assigned on the resource.getRichAttributesWithHoldersForAttributeDefinition(PerunSession sess, AttributeDefinition attrDef, RichAttribute aidingAttr) Method get attribute Definition attrDef and aidingAttr which only holds one or two useful objects in holders.getUserFacilityAttributesForAnyUser(PerunSession sess, Facility facility) Get All user_facility attributes for any existing usergetUserIdsByLogin(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, User user) Get all virtual attributes associated with the user on the facility.getVirtualAttributes(PerunSession sess, Member member, Resource resource) Get all virtual attributes associated with the member-resource attributes.getVirtualAttributes(PerunSession sess, User user) Get all virtual attributes associated with the user.protected voidbooleanisAttributeActionCritical(PerunSession sess, AttributeDefinition attr, AttributeAction action) Checks if the action is critical on given attribute.booleanisAttributeActionGloballyCritical(PerunSession sess, AttributeDefinition attr, AttributeAction action) Checks if the action is critical on given attribute for all objects.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(PerunSession sess, 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.booleanisTrulyRequiredAttribute(PerunSession sess, Facility facility, AttributeDefinition attributeDefinition) Check if this the attribute is truly required for the facility right now.booleanisTrulyRequiredAttribute(PerunSession sess, Facility facility, User user, AttributeDefinition attributeDefinition) Check if this the attribute is truly required for the user and the facility right now.booleanisTrulyRequiredAttribute(PerunSession sess, Member member, AttributeDefinition attributeDefinition) Check if this the attribute is truly required for the member right now.booleanisTrulyRequiredAttribute(PerunSession sess, Member member, Group group, AttributeDefinition attributeDefinition) Check if this the attribute is truly required for the member and the group right now.booleanisTrulyRequiredAttribute(PerunSession sess, Member member, Resource resource, AttributeDefinition attributeDefinition) Check if this the attribute is truly required for the member and the resource right now.booleanisTrulyRequiredAttribute(PerunSession sess, Resource resource, AttributeDefinition attributeDefinition) Check if this the attribute is truly required for the resource right now.booleanisTrulyRequiredAttribute(PerunSession sess, User user, AttributeDefinition attributeDefinition) Check if this the attribute is truly required for the user right now.booleanisVirtAttribute(PerunSession sess, AttributeDefinition attribute) Determine if attribute is virtual (virt) attribute.voidmergeAttributesValues(PerunSession sess, Member member, List<Attribute> attributes) Merges attributes values if the attribute type is list or map.voidmergeAttributesValues(PerunSession sess, User user, List<Attribute> attributes) Merges attributes values if the attribute type is list or map.mergeAttributeValue(PerunSession sess, Group group, Attribute attribute) Merges attribute value if the attribute type is list or map.mergeAttributeValue(PerunSession sess, Member member, Attribute attribute) Merges attribute value if the attribute type is list or map.mergeAttributeValue(PerunSession sess, User user, Attribute attribute) Merges attribute value if the attribute type is list or map.mergeAttributeValueInNestedTransaction(PerunSession sess, Member member, Attribute attribute) Merges attribute value if the attribute type is list or map.mergeAttributeValueInNestedTransaction(PerunSession sess, User user, Attribute attribute) Merges attribute value if the attribute type is list or map.voidremoveAllAttributes(PerunSession sess, Facility facility) Unset all attributes for the facility.voidremoveAllAttributes(PerunSession sess, Facility facility, boolean removeAlsoUserFacilityAttributes) Unset all attributes for the facility.voidremoveAllAttributes(PerunSession sess, Facility facility, User user) Unset all attributes (user-facility) for the user on the facility.voidremoveAllAttributes(PerunSession sess, Group group) Unset all attributes for the group.voidremoveAllAttributes(PerunSession sess, Host host) Unset all attributes for the host.voidremoveAllAttributes(PerunSession sess, Member member) Unset all attributes for the member.voidremoveAllAttributes(PerunSession sess, Member member, Group group) Unset all attributes for the member in the group.voidremoveAllAttributes(PerunSession sess, Member member, Resource resource) Unset all attributes for the member on the resource.voidremoveAllAttributes(PerunSession sess, Resource resource) Unset all attributes for the resource.voidremoveAllAttributes(PerunSession sess, Resource resource, Group group) Unset all group-resource attributesvoidremoveAllAttributes(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) Unset all attributes for the group and resource.voidremoveAllAttributes(PerunSession sess, User user) Unset all attributes for the user.voidremoveAllAttributes(PerunSession sess, UserExtSource ues) Unset all attributes for the user external source.voidremoveAllAttributes(PerunSession sess, Vo vo) Unset all attributes for the vo.voidremoveAllGroupResourceAttributes(PerunSession sess, Resource resource) Remove all non-virtual group-resource attributes assigned to resourcevoidremoveAllMemberResourceAttributes(PerunSession sess, Resource resource) Remove all non-virtual member-resource attributes assigned to resourcevoidremoveAllUserFacilityAttributes(PerunSession sess, User user) Unset all non-virtual user-facility attributes for the user and all facilitiesvoidremoveAttribute(PerunSession sess, Facility facility, AttributeDefinition attribute) Unset particular attribute for the facility.voidremoveAttribute(PerunSession sess, Facility facility, User user, AttributeDefinition attribute) Unset particular attribute for the user on the facility.voidremoveAttribute(PerunSession sess, Group group, AttributeDefinition attribute) Unset particular attribute for the group.voidremoveAttribute(PerunSession sess, Host host, AttributeDefinition attribute) Unset particular attribute for the host.voidremoveAttribute(PerunSession sess, Member member, AttributeDefinition attribute) Unset particular attribute for the member.voidremoveAttribute(PerunSession sess, Member member, Group group, AttributeDefinition attribute) Unset particular attribute for the member in the group.voidremoveAttribute(PerunSession sess, Member member, Resource resource, AttributeDefinition attribute) Unset particular attribute for the member on the resource.booleanremoveAttribute(PerunSession sess, Resource resource, AttributeDefinition attribute) Unset particular attribute for the resource.voidremoveAttribute(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) Unset particular group-resource attributevoidremoveAttribute(PerunSession sess, UserExtSource ues, AttributeDefinition attribute) Unset particular attribute for the user external source.voidremoveAttribute(PerunSession sess, User user, AttributeDefinition attribute) Unset particular attribute for the user.voidremoveAttribute(PerunSession sess, Vo vo, AttributeDefinition attribute) Unset particular attribute for the vo.voidremoveAttribute(PerunSession sess, String key, AttributeDefinition attribute) Unset particular entityless attribute with subject equals key.voidremoveAttributes(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<? extends AttributeDefinition> attributes) Unset the member, user, member-group, member-resource and user-facility attributes.voidremoveAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<? extends AttributeDefinition> attributes) Unset the member, user, member-resource and user-facility attributes.voidremoveAttributes(PerunSession sess, Facility facility, User user, List<? extends AttributeDefinition> attributes) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, Facility facility, List<? extends AttributeDefinition> attributesDefinition) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, Group group, List<? extends AttributeDefinition> attributes) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, Host host, List<? extends AttributeDefinition> attributesDefinition) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, Member member, boolean workWithUserAttributes, List<? extends AttributeDefinition> attributes) Unset all non-empty attributes associated with the member and if workWithUserAttributes is true, unset all non-empty attributes associated with user, who is this member.voidremoveAttributes(PerunSession sess, Member member, Group group, List<? extends AttributeDefinition> attributes) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, Member member, Group group, List<? extends AttributeDefinition> attributes, boolean workWithUserAttributes) voidremoveAttributes(PerunSession sess, Member member, Resource resource, List<? extends AttributeDefinition> attributes) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, Member member, List<? extends AttributeDefinition> attributes) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, Resource resource, Group group, List<? extends AttributeDefinition> attributes) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, Resource resource, Group group, List<? extends AttributeDefinition> attributes, boolean workWithGroupAttributes) Unset the group_resource attributes.voidremoveAttributes(PerunSession sess, Resource resource, List<? extends AttributeDefinition> attributes) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, UserExtSource ues, List<? extends AttributeDefinition> attributes) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, User user, List<? extends AttributeDefinition> attributes) Batch version of removeAttribute.voidremoveAttributes(PerunSession sess, Vo vo, List<? extends AttributeDefinition> attributes) Batch version of removeAttribute.booleanremoveAttributeWithoutCheck(PerunSession sess, Facility facility, AttributeDefinition attribute) Unset all attributes for the facility without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, Facility facility, User user, AttributeDefinition attribute) Unset all attributes for the user-facility without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, Group group, AttributeDefinition attribute) Unset all attributes for the group without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, Host host, AttributeDefinition attribute) Unset all attributes for the host without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, Member member, AttributeDefinition attribute) Unset all attributes for the member without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, Member member, Group group, AttributeDefinition attribute) Unset all attributes for the member-group without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, Member member, Resource resource, AttributeDefinition attribute) Unset all attributes for the member-resource without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, Resource resource, AttributeDefinition attribute) Unset all attributes for the resource without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) Unset all attributes for the group-resource without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, User user, AttributeDefinition attribute) Unset all attributes for the user without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, Vo vo, AttributeDefinition attribute) Unset all attributes for the vo without check of value.booleanremoveAttributeWithoutCheck(PerunSession sess, String key, AttributeDefinition attribute) Unset all attributes for the key (entityless) without check of value.voidsetAttribute(PerunSession sess, Facility facility, Attribute attribute) Store the particular attribute associated with the facility.voidsetAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) Store the attribute associated with the facility and user combination.voidsetAttribute(PerunSession sess, Group group, Attribute attribute) Store the particular attribute associated with the group.voidsetAttribute(PerunSession sess, Host host, Attribute attribute) Store the attribute associated with the host.voidsetAttribute(PerunSession sess, Member member, Attribute attribute) Store the particular attribute associated with the member.voidsetAttribute(PerunSession sess, Member member, Group group, Attribute attribute) Store the particular attribute associated with the group and member combination.voidsetAttribute(PerunSession sess, Member member, Resource resource, Attribute attribute) Store the particular attribute associated with the resource and member combination.voidsetAttribute(PerunSession sess, Resource resource, Attribute attribute) Store the particular attribute associated with the resource.voidsetAttribute(PerunSession sess, Resource resource, Group group, Attribute attribute) Store the group-resource attributevoidsetAttribute(PerunSession sess, UserExtSource ues, Attribute attribute) Store the attribute associated with the user external source.voidsetAttribute(PerunSession sess, User user, Attribute attribute) Store the attribute associated with the user.voidsetAttribute(PerunSession sess, Vo vo, Attribute attribute) Store the particular attribute associated with the vo.voidsetAttribute(PerunSession sess, String key, Attribute attribute) Stores entityless attribute (associated with string key).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.voidsetAttributeInNestedTransaction(PerunSession sess, Group group, Attribute attribute) Store the particular attribute associated with the group.voidsetAttributeInNestedTransaction(PerunSession sess, Member member, Attribute attribute) Store the particular attribute associated with the member.voidsetAttributeInNestedTransaction(PerunSession sess, Member member, Group group, Attribute attribute) Store the particular attribute associated with the member-group relationship.voidsetAttributeInNestedTransaction(PerunSession sess, UserExtSource userExtSource, Attribute attribute) Store the particular attribute associated with the user external source.voidsetAttributeInNestedTransaction(PerunSession sess, User user, Attribute attribute) Store the attribute associated with the user.voidsetAttributePolicyCollections(PerunSession sess, List<AttributePolicyCollection> policyCollections) Deletes old attribute policy collections and sets all new attribute policy collections.voidsetAttributes(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<Attribute> attributes) Store the member, user, member-group, member-resource and user-facility attributes.voidsetAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) Store the member, user, member-resource and user-facility attributes.voidsetAttributes(PerunSession sess, Facility facility, User user, List<Attribute> attributes) Store the attributes associated with the facility and user combination.voidsetAttributes(PerunSession sess, Facility facility, List<Attribute> attributes) Store the attributes associated with the facility.voidsetAttributes(PerunSession sess, Group group, List<Attribute> attributes) Store the attributes associated with the group.voidsetAttributes(PerunSession sess, Host host, List<Attribute> attributes) Store the attributes associated with the host.voidsetAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes) Store the attributes associated with the group and member combination.voidsetAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) Store the attributes associated with the resource and member combination.voidsetAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) Store the attributes associated with the resource and member combination.voidsetAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) Store the attributes associated with the resource and member combination.voidsetAttributes(PerunSession sess, Member member, List<Attribute> attributes) Store the attributes associated with the resource.voidsetAttributes(PerunSession sess, Member member, List<Attribute> attributes, boolean workWithUserAttributes) Store the attributes associated with member and user (which we get from this member) if workWithUserAttributes is true.voidsetAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) Stores the group-resource attributes.voidsetAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttributes) voidsetAttributes(PerunSession sess, Resource resource, List<Attribute> attributes) Store the attributes associated with the resource.voidsetAttributes(PerunSession sess, UserExtSource ues, List<Attribute> attributes) Store the attributes associated with the user external source.voidsetAttributes(PerunSession sess, User user, List<Attribute> attributes) Store the attributes associated with the user.voidsetAttributes(PerunSession sess, Vo vo, List<Attribute> attributes) Store the attributes associated with the vo.booleansetAttributeWithoutCheck(PerunSession sess, Facility facility, Attribute attribute) Just store the particular attribute associated with the facility, doesn't preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, Facility facility, User user, Attribute attribute) Just store the particular attribute associated with the user-facility, doesn't preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, Group group, Attribute attribute) Just store the particular attribute associated with the group, doesn't preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, Host host, Attribute attribute) Just store the particular attribute associated with the host, doesn't preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, Member member, Attribute attribute) Just store the particular attribute associated with the member, doesn't preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, Member member, Group group, Attribute attribute, boolean workWithUserAttributes) Just store the particular attribute associated with the member-group, doesn't preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, Member member, Resource resource, Attribute attribute, boolean workWithUserAttributes) Just store the particular attribute associated with the member-resource, doesn't preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, Resource resource, Attribute attribute) Just store the particular attribute associated with the resource, doesn't preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, Resource resource, Group group, Attribute attribute) Just store the group-resource attribute, do not preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, User user, Attribute attribute) Just store the attribute associated with the user, doesn't preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, Vo vo, Attribute attribute) Just store the particular attribute associated with the vo, doesn't preform any value check.booleansetAttributeWithoutCheck(PerunSession sess, String key, Attribute attribute) Just store the particular attribute associated with the entityless, doesn't preform any value check.voidsetPerunBl(PerunBl perunBl) voidsetRequiredAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member) Get and set required attribute for member, resource, user and facility.voidsetRequiredAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, boolean forceAttributesChecks) Get and set required attribute for member, resource, user and facility.voidsetRequiredAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) Take list of required attributes and set those which are empty and can be filled, then check them all.voidsetRequiredAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes, boolean forceAttributesChecks) Take list of required attributes and set those which are empty and can be filled, then check them all.voidsetRequiredAttributes(PerunSession sess, Service service, Facility facility, Resource resource, User user, Member member) Get and set required attribute for member, resource, user, facility and specific service.voidsetRequiredAttributes(PerunSession sess, Service service, Facility facility, Resource resource, User user, Member member, boolean forceAttributesChecks) Get and set required attribute for member, resource, user, facility and specific service.voidsetRequiredAttributes(PerunSession sess, List<Service> services, Facility facility, Resource resource, User user, Member member, boolean forceAttributesChecks) Get all required attributes for user, user-facility, member and member-resource attributes and set them.setWritableTrue(PerunSession sess, List<Attribute> attributes) Set all Attributes in list to "writable = true".stringToAttributeValue(String value, String type) Converts string into the Object defined by type.updateAttributeDefinition(PerunSession perunSession, AttributeDefinition attributeDefinition) Updates AttributeDefinition.
- 
Constructor Details- 
AttributesManagerBlImplConstructor.
 
- 
- 
Method Details- 
escapeListAttributeValue
- 
escapeMapAttributeValue
- 
blockAttributeValuepublic void blockAttributeValue(PerunSession session, Attribute attribute) throws AttributeNotExistsException Description copied from interface:AttributesManagerBlBlocks the attribute value for future use (optionally in the attribute namespace)- Specified by:
- blockAttributeValuein interface- AttributesManagerBl
- Parameters:
- session-
- attribute-
- Throws:
- AttributeNotExistsException- when the attribute does not exist
 
- 
checkAttributeAssignmentpublic void checkAttributeAssignment(PerunSession sess, AttributeDefinition attributeDefinition, PerunBean handler) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if attribute is from the same namespace as it's handler- Specified by:
- checkAttributeAssignmentin interface- AttributesManagerBl
- Parameters:
- sess-
- attributeDefinition-
- handler- attribute's handler
- Throws:
- WrongAttributeAssignmentException
 
- 
checkAttributeAssignmentpublic void checkAttributeAssignment(PerunSession sess, AttributeDefinition attributeDefinition, PerunBean handler1, PerunBean handler2) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if attribute is from the same namespace as combination of perunBean handlers. Order of handlers does not matter.- Specified by:
- checkAttributeAssignmentin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- attributeDefinition- the attribute definition
- handler1- one of attribute's handlers
- handler2- one of attribute's handlers
- Throws:
- WrongAttributeAssignmentException- if assignment of attribute is not correct
 
- 
checkAttributeDependenciespublic void checkAttributeDependencies(PerunSession sess, RichAttribute richAttr) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlThis method check validity of value on all attributes which depends on the attributes in richAttr object.There are two types of dependency "normal" and "strong" and every non-virtual attribute can have some "normal" dependencies and every virtual attribute can have some "normal" and some "strong" dependencies. Normal dependency means that if we have attributes A and B and attribute A is dependent on attribute B, then if value of attribute B has been changed, we need to check that value of attribute A is still valid. In other words: If '->' means depends on, then in case that A -> B, if value of B has been changed, we need to check that value of A is still valid. Strong dependency means that if we have attribute A and B and attribute A is strongly dependent on attribute B, then if value of attribute B has been changed, it can affect value of attribute A too therefore we need to check value of attribute A and also check all attributes which depend on attribute A. In other words: If '=>' means strongly depends on and '->' means depends on, then in case that A => B and C -> A, if value of B has been changed, we need to check not only A, but also C, because validity of attribute C could been affected but change of attribute A. RichAttribute is needed because it contains useful objects in holders. - Specified by:
- checkAttributeDependenciesin interface- AttributesManagerBl
- Parameters:
- sess-
- richAttr- RichAttribute with attribute an its' holders
- Throws:
- WrongAttributeValueException
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
 
- 
checkAttributeExistspublic void checkAttributeExists(PerunSession sess, AttributeDefinition attribute) throws AttributeNotExistsException - Specified by:
- checkAttributeExistsin interface- AttributesManagerBl
- Throws:
- AttributeNotExistsException
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, Facility facility, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this facility attribute has valid semantics.- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't facility attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, Vo vo, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this vo attribute has valid semantics.- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- vo- vo for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't vo attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this group attribute has valid semantics.- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- group for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't group attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, Resource resource, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this resource attribute has valid semantics.- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- resource for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't resource attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, Member member, Resource resource, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlCheck if value of this member-resource attribute has valid semantics.- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- 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:
- WrongAttributeAssignmentException- if attribute isn't member-resource attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
- MemberResourceMismatchException
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, Member member, Group group, Attribute attribute) throws WrongAttributeAssignmentException, MemberGroupMismatchException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this member-group attribute has valid semantics.- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- 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:
- WrongAttributeAssignmentException- if attribute isn't member-resource attribute
- MemberGroupMismatchException
- WrongReferenceAttributeValueException
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, Member member, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this member attribute has valid semantics.- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member for which (and for specified resource) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't member-resource attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, Facility facility, User user, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this user-facility attribute has valid semantics.- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- 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:
- WrongAttributeAssignmentException- if attribute isn't user-facility attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, Resource resource, Group group, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlCheck if value of this group-resource attribute has valid semantics- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- 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
- Throws:
- WrongAttributeAssignmentException- if attribute isn't group-resource attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
- GroupResourceMismatchException- if group and resource are not in the same VO
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, User user, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this user attribute has valid semantics.- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- user for which (and for specified facility) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't user-facility attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, Host host, Attribute attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if the value of this host attribute has valid semantics- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- host- host which attribute validity is checked
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if the attribute isn't host attribute
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, UserExtSource ues, Attribute attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if value of this user ext source attribute has valid semantics.- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- ues- user external source for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't user external source attribute
 
- 
checkAttributeSemanticspublic void checkAttributeSemantics(PerunSession sess, String key, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if the value of this entityless attribute has valid semantics- Specified by:
- checkAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- key- check the attribute for this key
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if the attribute isn't entityless attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, Facility facility, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute isn't facility attribute
- See Also:
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, Vo vo, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if value of this vo attribute has valid syntax.- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- vo- vo for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute isn't vo attribute
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if value of this group attribute has valid syntax.- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- group for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute isn't group attribute
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, Resource resource, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if value of this resource attribute has valid syntax.- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- resource for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute isn't resource attribute
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, Member member, Resource resource, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlCheck if value of this member-resource attribute has valid syntax.- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- 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:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute isn't member-resource attribute
- MemberResourceMismatchException- if member and resource are not in the same VO
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, Member member, Group group, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlCheck if value of this member-group attribute has valid syntax.- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- 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:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute isn't member-group attribute
- MemberGroupMismatchException
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, Member member, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if value of this member attribute has valid syntax.- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member for which (and for specified resource) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute isn't member attribute
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, Facility facility, User user, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if value of this user-facility attribute has valid syntax.- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- 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:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute isn't user-facility attribute
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, Resource resource, Group group, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlCheck if value of this group-resource attribute has valid syntax- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- 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
- Throws:
- WrongAttributeAssignmentException- if attribute isn't group-resource attribute
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- GroupResourceMismatchException- if group and resource are not in the same VO
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, User user, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if value of this user attribute has valid syntax.- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- user for which (and for specified facility) you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute isn't user attribute
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, Host host, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlCheck if the value of this host attribute has valid syntax.- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- host- host which attribute validity is checked
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't host attribute
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, UserExtSource ues, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this user external source attribute has valid syntax.- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- ues- user external source for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't user external source attribute
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
 
- 
checkAttributeSyntaxpublic void checkAttributeSyntax(PerunSession sess, String key, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if the value of this entityless attribute has valid syntax- Specified by:
- checkAttributeSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- key- check the attribute for this key
- attribute- attribute to check
- Throws:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if the attribute isn't entityless attribute
 
- 
checkAttributesExistspublic void checkAttributesExists(PerunSession sess, List<? extends AttributeDefinition> attributes) throws AttributeNotExistsException - Specified by:
- checkAttributesExistsin interface- AttributesManagerBl
- Throws:
- AttributeNotExistsException
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Facility facility, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Vo vo, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Group group, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Resource resource, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- MemberResourceMismatchException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- MemberGroupMismatchException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Parameters:
- workWithUserAttributes- method can process also user and member attributes (user is automatically get from member) !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- MemberGroupMismatchException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Parameters:
- workWithUserAttributes- method can process also user and user-facility attributes (user is automatically get from member a facility is get from resource)
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- MemberResourceMismatchException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlCheck if value of attributes has valid semantics. Attributes can be from namespace: member, user, member-resource and user-facility.- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility for which you want to check validity of attribute
- resource- resource for which you want to check validity of attribute
- user- user for which you want to check validity of attribute
- member- member for which you want to check validity of attribute
- attributes- list of attributes to check
- Throws:
- WrongAttributeAssignmentException- if attribute does not belong to appropriate entity
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
- MemberResourceMismatchException- if member and resource are not in the same VO
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupResourceMismatchException, MemberResourceMismatchException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlCheck if value of attributes has valid semantics. Attributes can be from namespace: member, user, member-group, member-resource and user-facility.- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility for which you want to check validity of attribute
- resource- resource for which you want to check validity of attribute
- group- group for which you want to check validity of attribute
- user- user for which you want to check validity of attribute
- member- member for which you want to check validity of attribute
- attributes- list of attributes to check
- Throws:
- WrongAttributeAssignmentException- if attribute does not belong to appropriate entity
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
- GroupResourceMismatchException- if group and resource are not in the same VO
- MemberResourceMismatchException- if member and resource are not in the same VO
- MemberGroupMismatchException
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Member member, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlbatch version of checkAttributeSemanticsee cz.metacentrum.perun.core.api.AttributesManager#checkAttributeSemantics(cz.metacentrum.perun.core.api.PerunSession, cz.metacentrum.perun.core.api.Resource, cz.metacentrum.perun.core.api.Group, cz.metacentrum.perun.core.api.Attribute) - Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- GroupResourceMismatchException
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlbatch version of checkAttributeSemantics with workWithGroupAttributes parameter If workWithGroupAttributes is true, checks whether attribute is group-resource or group attribute.- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- GroupResourceMismatchException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, User user, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, Host host, List<Attribute> attributes) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSemanticspublic void checkAttributesSemantics(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSemantics- Specified by:
- checkAttributesSemanticsin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Facility facility, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException- if any of attributes values has wrong/illegal syntax
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Vo vo, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException- if any of attributes values has wrong/illegal syntax
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Group group, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException- if any of attributes values has wrong/illegal syntax
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Resource resource, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException- if any of attributes values has wrong/illegal syntax
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException
- WrongAttributeAssignmentException
- MemberResourceMismatchException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException
- WrongAttributeAssignmentException
- MemberGroupMismatchException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Parameters:
- workWithUserAttributes- method can process also user and member attributes (user is automatically get from member) !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
- Throws:
- WrongAttributeValueException
- WrongAttributeAssignmentException
- MemberGroupMismatchException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Parameters:
- workWithUserAttributes- method can process also user and user-facility attributes (user is automatically get from member a facility is get from resource)
- Throws:
- WrongAttributeValueException
- WrongAttributeAssignmentException
- MemberResourceMismatchException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlCheck if value of attributes has valid syntax. Attributes can be from namespace: member, user, member-resource and user-facility.- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility for which you want to check validity of attribute
- resource- resource for which you want to check validity of attribute
- user- user for which you want to check validity of attribute
- member- member for which you want to check validity of attribute
- attributes- list of attributes to check
- Throws:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute does not belong to appropriate entity
- MemberResourceMismatchException- if member and resource are not in the same VO
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, GroupResourceMismatchException, MemberResourceMismatchException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlCheck if value of attributes has valid syntax. Attributes can be from namespace: member, user, member-group, member-resource and user-facility.- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility for which you want to check validity of attribute
- resource- resource for which you want to check validity of attribute
- user- user for which you want to check validity of attribute
- member- member for which you want to check validity of attribute
- attributes- list of attributes to check
- Throws:
- WrongAttributeValueException- if the attribute value has wrong/illegal syntax
- WrongAttributeAssignmentException- if attribute does not belong to appropriate entity
- GroupResourceMismatchException- if group and resource are not in the same VO
- MemberResourceMismatchException- if member and resource are not in the same VO
- MemberGroupMismatchException
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Member member, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlbatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- GroupResourceMismatchException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlbatch version of checkAttributeSyntax with workWithGroupAttributes parameter. If workWithGroupAttributes is true, checks whether attribute is group-resource or group attribute.- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- GroupResourceMismatchException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, User user, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException
- WrongAttributeAssignmentException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, Host host, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- See Also:
 
- 
checkAttributesSyntaxpublic void checkAttributesSyntax(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlBatch version of checkAttributeSyntax- Specified by:
- checkAttributesSyntaxin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- See Also:
 
- 
checkGroupIsFromTheSameVoLikeResourcepublic void checkGroupIsFromTheSameVoLikeResource(PerunSession sess, Group group, Resource resource) throws GroupResourceMismatchException Check if group is assigned on resource. If not, throw WrongAttributeAssignment Exception- Specified by:
- checkGroupIsFromTheSameVoLikeResourcein interface- AttributesManagerBl
- Parameters:
- sess-
- group-
- resource-
- Throws:
- GroupResourceMismatchException
 
- 
checkNamespacepublic void checkNamespace(PerunSession sess, AttributeDefinition attribute, String namespace) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlDetermine if attribute is from specified namespace.- Specified by:
- checkNamespacein interface- AttributesManagerBl
- Parameters:
- sess-
- attribute-
- namespace-
- Throws:
- WrongAttributeAssignmentException- if the attribute isn't from specified namespace
 
- 
checkNamespacepublic void checkNamespace(PerunSession sess, List<? extends AttributeDefinition> attributes, String namespace) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlDetermine if attributes are from specified namespace.- Specified by:
- checkNamespacein interface- AttributesManagerBl
- Parameters:
- sess-
- attributes-
- namespace-
- Throws:
- WrongAttributeAssignmentException- if any of the attribute isn't from specified namespace
 
- 
convertAttributeToNonuniquepublic int convertAttributeToNonunique(PerunSession session, int attrId) throws AttributeNotExistsException, AttributeNotMarkedUniqueException Description copied from interface:AttributesManagerBlConverts attribute to nonunique.Unmarks unique flag from attribute definition, and deletes all values from a special table with unique constraint that ensures that all values remain unique. - Specified by:
- convertAttributeToNonuniquein interface- AttributesManagerBl
- Parameters:
- session- perun session
- attrId- attribute id
- Throws:
- AttributeNotExistsException- when the attribute definition for attrId doesn't exist
- AttributeNotMarkedUniqueException- when the attribute definition is not unique
 
- 
convertAttributeToUniquepublic void convertAttributeToUnique(PerunSession session, int attrId) throws AttributeNotExistsException, AttributeAlreadyMarkedUniqueException Description copied from interface:AttributesManagerBlConverts attribute to unique.Marks the attribute definition as unique, and copies all values to a special table with unique constraint that ensures that all values remain unique. Values of type ArrayList and LinkedHashMap are splitted into multiple entries, thus each of the entries must be unique. For LinkedHashMap, the unique entries are strings in the form of "key=value", thus it is possible to have same values for different keys. Entityless attributes cannot be converted to unique. - Specified by:
- convertAttributeToUniquein interface- AttributesManagerBl
- Parameters:
- session- perun session
- attrId- attribute id
- Throws:
- AttributeNotExistsException
- AttributeAlreadyMarkedUniqueException
 
- 
createAttributepublic AttributeDefinition createAttribute(PerunSession sess, AttributeDefinition attribute) throws AttributeDefinitionExistsException Description copied from interface:AttributesManagerBlCreates an attribute, the attribute is stored into the appropriate DB table according to the namespace Also tries to initialize its attribute module and register the module for listening Auditer messages.- Specified by:
- createAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- attribute- attribute to create
- Returns:
- attribute with set id
- Throws:
- AttributeDefinitionExistsException- if attribute already exists
 
- 
decorateMembersWithDefOptMemberAttributespublic List<RichMember> decorateMembersWithDefOptMemberAttributes(PerunSession sess, List<RichMember> members, List<String> memberAttrNames) Description copied from interface:AttributesManagerBlAppends 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.- Specified by:
- decorateMembersWithDefOptMemberAttributesin interface- AttributesManagerBl
- 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
 
- 
decorateMembersWithDefOptUserAttributespublic List<RichMember> decorateMembersWithDefOptUserAttributes(PerunSession sess, List<RichMember> members, List<String> userAttrNames) Description copied from interface:AttributesManagerBlAppends 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.- Specified by:
- decorateMembersWithDefOptUserAttributesin interface- AttributesManagerBl
- 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
 
- 
deleteAttributepublic void deleteAttribute(PerunSession sess, AttributeDefinition attribute) throws RelationExistsException Description copied from interface:AttributesManagerBlDeletes the attribute.- Specified by:
- deleteAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- attribute-
- Throws:
- RelationExistsException- if attribute definition has any relation to some application form item or to some service as a required attribute
 
- 
deleteAttributepublic void deleteAttribute(PerunSession sess, AttributeDefinition attributeDefinition, boolean force) Description copied from interface:AttributesManagerBlDeletes the attribute.- Specified by:
- deleteAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- attributeDefinition- attribute to delete
- force- delete also all existing relation. If this parameter is true the RelationExistsException is never thrown.
 
- 
deletedEntityHookpublic void deletedEntityHook(PerunSession sess, User user, Attribute attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlExecutes extra logic for attribute module connected to a user entity being deleted- Specified by:
- deletedEntityHookin interface- AttributesManagerBl
- Parameters:
- sess-
- user-
- attribute-
- Throws:
- WrongAttributeAssignmentException- if the attribute isn't user attribute
 
- 
doTheMagicpublic void doTheMagic(PerunSession sess, Member member) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlSame as doTheMagic(sess, member, false);- Specified by:
- doTheMagicin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
doTheMagicpublic void doTheMagic(PerunSession sess, Member member, boolean trueMagic) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlThis function takes all member-related attributes (member, user, member-resource, user-facility) and tries to fill them and set them. If trueMagic is set, this method can remove invalid attribute value (value which didn't pass checkAttributeSemantics test) and try to fill and set another. In this case, WrongReferenceAttributeValueException, WrongAttributeValueException are thrown if same attribute can't be set corraclty.- Specified by:
- doTheMagicin interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- trueMagic-
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
escapeQueryParametersDescription copied from interface:AttributesManagerBlEscapes QUERY PARAMETER VALUES in URL value. Does not modify domain or parameters names. e.g. 'domain/?vo=vo name' => 'domain/?vo=vo+name'- Specified by:
- escapeQueryParametersin interface- AttributesManagerBl
- Parameters:
- value- url
- Returns:
- url with escaped special characters in query parameter's values
 
- 
fillAttributepublic Attribute fillAttribute(PerunSession sess, Resource resource, Attribute attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlThis method try to fill a value of the resource attribute. Value may be copied from some facility attribute.- Specified by:
- fillAttributein interface- AttributesManagerBl
- 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 overwritten. This means the attribute value must be empty otherwise this method won't fill it.
- Returns:
- attribute which MAY have filled value
- Throws:
- WrongAttributeAssignmentException
 
- 
fillAttributepublic Attribute fillAttribute(PerunSession sess, Member member, Resource resource, Attribute attribute) throws WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlThis method try to fill value of the member-resource attribute. This value is automatically generated, but not all attributes can be filled this way.- Specified by:
- fillAttributein interface- AttributesManagerBl
- 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 overwritten. This means the attribute value must be empty otherwise this method won't fill it.
- Returns:
- attribute which MAY have filled value
- Throws:
- WrongAttributeAssignmentException
- MemberResourceMismatchException
 
- 
fillAttributepublic Attribute fillAttribute(PerunSession sess, Member member, Group group, Attribute attribute) throws WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlThis method tries to fill value of the member-group attribute. This value is automatically generated, but not all attributes can be filled this way.- Specified by:
- fillAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- attribute of this member (and group) you want to fill
- group- attribute of this group (and member) 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:
- WrongAttributeAssignmentException
- MemberGroupMismatchException
 
- 
fillAttributeDescription copied from interface:AttributesManagerBlThis method try to fill value of the member attribute. This value is automatically generated, but not all attributes can be filled this way.- Specified by:
- fillAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- attribute of this member (and resource) and 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
 
- 
fillAttributepublic Attribute fillAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlThis method try to fill value of the user-facility attribute. This value is automatically generated, but not all attributes can be filled this way.- Specified by:
- fillAttributein interface- AttributesManagerBl
- 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 overwritten. This means the attribute value must be empty otherwise this method won't fill it.
- Returns:
- attribute which MAY have filled value
- Throws:
- WrongAttributeAssignmentException
 
- 
fillAttributepublic Attribute fillAttribute(PerunSession sess, User user, Attribute attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlThis method try to fill value of the user attribute. This value is automatically generated, but not all attributes can be filled this way.- Specified by:
- fillAttributein interface- AttributesManagerBl
- 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 overwritten. This means the attribute value must be empty otherwise this method won't fill it.
- Returns:
- attribute which MAY have filled value
- Throws:
- WrongAttributeAssignmentException
 
- 
fillAttributepublic Attribute fillAttribute(PerunSession sess, Host host, Attribute attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlThis method tries to fill value of the host attribute. This value is automatically generated, but not all attributes can be filled this way- Specified by:
- fillAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- host-
- 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:
- WrongAttributeAssignmentException
 
- 
fillAttributepublic Attribute fillAttribute(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeAssignmentException - Specified by:
- fillAttributein interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
 
- 
fillAttributepublic Attribute fillAttribute(PerunSession sess, Resource resource, Group group, Attribute attribute) throws WrongAttributeAssignmentException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlThis method tries to fill value of group-resource attribute. This value is automatically generated, but not all attributes can be filled this way- Specified by:
- fillAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- group-
- attribute-
- Returns:
- attribute which may have filled value
- Throws:
- WrongAttributeAssignmentException
- GroupResourceMismatchException
 
- 
fillAttributepublic Attribute fillAttribute(PerunSession sess, UserExtSource ues, Attribute attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlThis method tries to fill value of the user external source attribute. This value is automatically generated, but not all attributes can be filled this way- Specified by:
- fillAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- ues-
- 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:
- WrongAttributeAssignmentException
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Resource resource, List<Attribute> attributes) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of fillAttribute. This method skips all attributes with not-null value.- Specified by:
- fillAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- See Also:
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlBatch version of fillAttribute. This method skips all attributes with not-null value.- Specified by:
- fillAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- MemberResourceMismatchException
- See Also:
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws WrongAttributeAssignmentException, MemberResourceMismatchException - Specified by:
- fillAttributesin interface- AttributesManagerBl
- Parameters:
- workWithUserAttributes- method can process also user and user-facility attributes (user is automatically get from member a facility is get from resource) !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
- Throws:
- WrongAttributeAssignmentException
- MemberResourceMismatchException
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlBatch version of fillAttribute. This method skips all attributes with not-null value.- Specified by:
- fillAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException- if any of attributes values is wrong/illegal
- MemberGroupMismatchException
- See Also:
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws WrongAttributeAssignmentException, MemberGroupMismatchException - Specified by:
- fillAttributesin interface- AttributesManagerBl
- Parameters:
- workWithUserAttributes- method can process also user and memebr attributes (user is automatically get from member) !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
- Throws:
- WrongAttributeAssignmentException
- MemberGroupMismatchException
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlThis method try to fill value of the user, member, member-resource and user-facility attributes. This value is automatically generated, but not all attributes can be filled this way. This method skips all attributes with not-null value.- Specified by:
- fillAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- resource-
- user-
- member-
- attributes-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- MemberResourceMismatchException
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes, boolean returnOnlyAttributesWithChangedValue) throws WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlThis method try to fill value of the user, member, member-resource and user-facility attributes. This value is automatically generated, but not all attributes can be filled this way. This method skips all attributes with not-null value.if returnOnlyAttributesWithChangedValue is true - return only attributes which changed value by filling new one If false, has the same functionality like fillAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List attributes) - Specified by:
- fillAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- resource-
- user-
- member-
- attributes-
- returnOnlyAttributesWithChangedValue-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- MemberResourceMismatchException
 
- 
fillAttributesDescription copied from interface:AttributesManagerBlBatch version of fillAttribute. This method skips all attributes with not-null value.- Specified by:
- fillAttributesin interface- AttributesManagerBl
- See Also:
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of fillAttribute. This method skips all attributes with not-null value.- Specified by:
- fillAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- See Also:
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, User user, List<Attribute> attributes) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of fillAttribute. This method skips all attributes with not-null value.- Specified by:
- fillAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- See Also:
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Host host, List<Attribute> attributes) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of fillAttribute. This method skips all attributes with not-null value.- Specified by:
- fillAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- See Also:
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Group group, List<Attribute> groupReqAttributes) throws WrongAttributeAssignmentException - Specified by:
- fillAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws WrongAttributeAssignmentException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlBatch version of fillAttribute. This method skips all attributes with not-null value.- Specified by:
- fillAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- GroupResourceMismatchException
- See Also:
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttributes) throws WrongAttributeAssignmentException, GroupResourceMismatchException - Specified by:
- fillAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- GroupResourceMismatchException
 
- 
fillAttributespublic List<Attribute> fillAttributes(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlBatch version of fillAttribute. This method skips all attributes with not-null value.- Specified by:
- fillAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- See Also:
 
- 
forceCheckAttributeSemanticspublic void forceCheckAttributeSemantics(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this group attribute has valid semantics no matter if attribute is required or not.- Specified by:
- forceCheckAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- group for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't group attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
forceCheckAttributeSemanticspublic void forceCheckAttributeSemantics(PerunSession sess, Resource resource, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlCheck if value of this resource attribute has valid semantics no matter if attribute is required or not.- Specified by:
- forceCheckAttributeSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- resource for which you want to check validity of attribute
- attribute- attribute to check
- Throws:
- WrongAttributeAssignmentException- if attribute isn't resource attribute
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
 
- 
forceCheckAttributesSemanticspublic void forceCheckAttributesSemantics(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlCheck if value of attributes has valid semantics. Attributes can be from namespace: member, user, member-resource and user-facility. This method does not validate, if all of these attributes are truly required! This methods calls semantics checks on ALL of the given attributes.- Specified by:
- forceCheckAttributesSemanticsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility for which you want to check validity of attribute
- resource- resource for which you want to check validity of attribute
- user- user for which you want to check validity of attribute
- member- member for which you want to check validity of attribute
- attributes- list of attributes to check
- Throws:
- WrongAttributeAssignmentException- if attribute does not belong to appropriate entity
- WrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
- MemberResourceMismatchException- if member and resource are not in the same VO
 
- 
getAllAttributesStartWithNameWithoutNullValuepublic List<Attribute> getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Group group, String startPartOfName) Description copied from interface:AttributesManagerBlGet all non-empty attributes associated with the group starts with name startPartOfName. Get only nonvirtual attributes with notNull Value.- Specified by:
- getAllAttributesStartWithNameWithoutNullValuein interface- AttributesManagerBl
- 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
 
- 
getAllAttributesStartWithNameWithoutNullValuepublic List<Attribute> getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Resource resource, String startPartOfName) Description copied from interface:AttributesManagerBlGet all non-empty attributes associated with the resource starts with name startPartOfName. Get only nonvirtual attributes with notNull value.- Specified by:
- getAllAttributesStartWithNameWithoutNullValuein interface- AttributesManagerBl
- 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
 
- 
getAllDependencies- Specified by:
- getAllDependenciesin interface- AttributesManagerBl
- Returns:
- get map of all Dependencies
 
- 
getAllNamespacesDescription copied from interface:AttributesManagerBlReturns list of all possible namespaces.- Specified by:
- getAllNamespacesin interface- AttributesManagerBl
- Parameters:
- sess- session
- Returns:
- list of namespaces
 
- 
getAllSimilarAttributeNamespublic List<String> getAllSimilarAttributeNames(PerunSession sess, String startingPartOfAttributeName) Description copied from interface:AttributesManagerBlThis method get all similar attr_names which start with partOfAttributeName- Specified by:
- getAllSimilarAttributeNamesin interface- AttributesManagerBl
- 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.
 
- 
getAllValuespublic List<Object> getAllValues(PerunSession sess, AttributeDefinition attributeDefinition) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlGet all values for specified attribute. Attribute can't be core, core-managed or virt.- Specified by:
- getAllValuesin interface- AttributesManagerBl
- Parameters:
- sess-
- attributeDefinition-
- Returns:
- Throws:
- WrongAttributeAssignmentException- if attribute is core, core-managed or virt
 
- 
getAnonymizedValuepublic Attribute getAnonymizedValue(PerunSession sess, User user, Attribute attribute) throws WrongAttributeAssignmentException, AnonymizationNotSupportedException Description copied from interface:AttributesManagerBlGets anonymized value of the attribute.- Specified by:
- getAnonymizedValuein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- user for which you want the anonymized attribute value
- attribute- attribute to get anonymized value from
- Returns:
- attribute with anonymized value
- Throws:
- WrongAttributeAssignmentException- if attribute isn't user attribute
- AnonymizationNotSupportedException- if the module doesn't exist or it doesn't implement this method
 
- 
getAppFormItemsForAppFormAndAttributepublic List<String> getAppFormItemsForAppFormAndAttribute(PerunSession sess, int appFormId, AttributeDefinition attr) Description copied from interface:AttributesManagerBlReturns list of app form items' shortnames for which the given attribute is a source or a destination attribute in the given application form- Specified by:
- getAppFormItemsForAppFormAndAttributein interface- AttributesManagerBl
- Parameters:
- sess- session
- appFormId- id of application form
- attr- attribute definition
- Returns:
- list of shortnames
 
- 
getAppFormsWhereAttributeRelatedpublic List<ApplicationForm> getAppFormsWhereAttributeRelated(PerunSession sess, AttributeDefinition attr) Description copied from interface:AttributesManagerBlReturns all application forms where the given attribute definition is a source or a destination attribute for any application from item- Specified by:
- getAppFormsWhereAttributeRelatedin interface- AttributesManagerBl
- Parameters:
- sess- session
- attr- attribute definition
- Returns:
- list of application forms where the given attribute definition has relation to any application form item
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, Facility facility, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the facility.- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- facility- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, Vo vo, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the vo.- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- vo- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, Group group, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the group.- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- group- group get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, Resource resource, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the resource.- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- resource- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, Member member, Resource resource, String attributeName) throws MemberResourceMismatchException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the member on this resource.- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- member- to get attribute from
- resource- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- MemberResourceMismatchException
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, Member member, Group group, String attributeName) throws AttributeNotExistsException, WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet particular attribute for the member in this group.- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- member- to get attribute from
- group- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- AttributeNotExistsException- if the attribute doesn't exists in the underlying data source
- WrongAttributeAssignmentException
- MemberGroupMismatchException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, Member member, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the member.- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- member- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, Facility facility, User user, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the user on this facility.- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- facility- to get attribute from
- user- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, User user, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the user.- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- user- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, Host host, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the host- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- host- host to get attribute from
- attributeName- attribute name
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, Resource resource, Group group, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlGet particular group attribute on the resource- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- group-
- attributeName-
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
- GroupResourceMismatchException
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, String key, String attributeName) throws AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlGet particular entityless attribute- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- key- key to get attribute for
- attributeName-
- Returns:
- attribute
- Throws:
- AttributeNotExistsException- if the attribute doesn't exists in the underlaying data source
- WrongAttributeAssignmentException- if attribute isn't entityless attribute
 
- 
getAttributepublic Attribute getAttribute(PerunSession sess, UserExtSource ues, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the User External Source.- Specified by:
- getAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- ues- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException- if atribute prefix does not match entity.
- AttributeNotExistsException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, Facility facility, int id) throws AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlGet particular attribute for the facility.- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess-
- facility- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, Vo vo, int id) throws AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlGet particular attribute for the vo.- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess-
- vo- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, Resource resource, int id) throws AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlGet particular attribute for the resource.- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess-
- resource- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, Member member, Resource resource, int id) throws WrongAttributeAssignmentException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet particular attribute for the member on this resource.- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess-
- member- to get attribute from
- resource- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- MemberResourceMismatchException
- AttributeNotExistsException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, Member member, Group group, int id) throws AttributeNotExistsException, WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet particular attribute for the member in this group. Also it can return only member or only user attribute if attr definition is not from NS_MEMBER_GROUP_ATTR but from NS_MEMBER_ATTR or NS_GROUP_ATTR- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get attribute from
- group- to get attribute from
- id- attribute id
- Returns:
- memberGroup, member OR user attribute
- Throws:
- AttributeNotExistsException- if the attribute doesn't exists in the underlying data source
- WrongAttributeAssignmentException
- MemberGroupMismatchException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, Member member, int id) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the member.- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess-
- member- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, Facility facility, User user, int id) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the user on this facility.- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess-
- facility- to get attribute from
- user- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, User user, int id) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the user.- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess-
- user- to get attribute from
- id- attribute id
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, Host host, int id) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the host- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- host- to get attribute from
- id- id of attribute
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException- if attribute is not host attribute
- AttributeNotExistsException- if attribute doesn't exist
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, Resource resource, Group group, int id) throws WrongAttributeAssignmentException, AttributeNotExistsException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlGet particular group-resource attribute- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- group-
- id-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
- GroupResourceMismatchException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, Group group, int id) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular group attribute- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess-
- group-
- id-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributeByIdpublic Attribute getAttributeById(PerunSession sess, UserExtSource ues, int id) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the user external source- Specified by:
- getAttributeByIdin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- ues- to get attribute from
- id- id of attribute
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException- if attribute is not user external source attribute
- AttributeNotExistsException- if attribute doesn't exist
 
- 
getAttributeDefinitionpublic AttributeDefinition getAttributeDefinition(PerunSession sess, String attributeName) throws AttributeNotExistsException Description copied from interface:AttributesManagerBlGet attribute definition (attribute without defined value).- Specified by:
- getAttributeDefinitionin interface- AttributesManagerBl
- Parameters:
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- AttributeNotExistsException
 
- 
getAttributeDefinitionByIdpublic AttributeDefinition getAttributeDefinitionById(PerunSession sess, int id) throws AttributeNotExistsException Description copied from interface:AttributesManagerBlGet attribute definition (attribute without defined value).- Specified by:
- getAttributeDefinitionByIdin interface- AttributesManagerBl
- Parameters:
- id- attribute id
- Returns:
- attribute
- Throws:
- AttributeNotExistsException
 
- 
getAttributeForUpdatepublic Attribute getAttributeForUpdate(PerunSession sess, User user, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGet particular attribute for the user for update - locking the attribute for user.- Specified by:
- getAttributeForUpdatein interface- AttributesManagerBl
- Parameters:
- sess-
- user- to get attribute from
- attributeName- attribute name defined in the particular manager
- Returns:
- attribute
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getAttributeModulesDependenciesGraphDescription copied from interface:AttributesManagerBlGenerates graph describing dependencies of attribute modules.- Specified by:
- getAttributeModulesDependenciesGraphin interface- AttributesManagerBl
- Parameters:
- session- session
- Returns:
- graph of dependencies
 
- 
getAttributeModulesDependenciesGraphAsStringpublic String getAttributeModulesDependenciesGraphAsString(PerunSession session, GraphTextFormat format) Description copied from interface:AttributesManagerBlGenerates graph describing attribute modules dependencies. Text output format can be specified byGraphTextFormatformat.- Specified by:
- getAttributeModulesDependenciesGraphAsStringin interface- AttributesManagerBl
- Parameters:
- session- session
- format- text output format
- Returns:
- body of text file containing description of modules dependencies.
 
- 
getAttributeModulesDependenciesGraphAsStringpublic String getAttributeModulesDependenciesGraphAsString(PerunSession session, GraphTextFormat format, AttributeDefinition attributeDefinition) Description copied from interface:AttributesManagerBlGenerates graph describing dependencies for given AttributeDefinition. Text output format can be specified byGraphTextFormatformat.- Specified by:
- getAttributeModulesDependenciesGraphAsStringin interface- AttributesManagerBl
- Parameters:
- session- session
- format- text output format
- attributeDefinition- attribute definition which dependencies will be used
- Returns:
- body of text file containing description of modules dependencies.
 
- 
getAttributePolicyCollectionspublic List<AttributePolicyCollection> getAttributePolicyCollections(PerunSession sess, int attributeId) Description copied from interface:AttributesManagerBlGets attribute policy collections for an attribute definition with given id.- Specified by:
- getAttributePolicyCollectionsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- attributeId- id of the attribute definition
- Returns:
- all policy collections of the attribute definition
 
- 
getAttributeRulesDescription copied from interface:AttributesManagerBlGets attribute rules containing policy collections and critical actions for an attribute definition with given id- Specified by:
- getAttributeRulesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- attributeId- id of the attribute definition
- Returns:
- attribute rules of the attribute definition
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all non-empty attributes associated with the facility.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility to get the attributes from
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all attributes associated with the facility which have name in list attrNames (empty too). Virtual attribute too.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all non-empty attributes associated with the vo.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- vo- vo to get the attributes from
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all non-empty attributes associated with the group.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- group to get the attributes from
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all non-empty attributes associated with the resource.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- resource to get the attributes from
- Returns:
- list of attributes
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Member member, Resource resource) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet all non-empty attributes associated with the member on the resource.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- resource- to get the attributes from
- Returns:
- list of attributes
- Throws:
- MemberResourceMismatchException
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Member member, Group group) throws MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet all non-empty attributes associated with the member in the group.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- group- group to get the attributes from
- Returns:
- list of attributes
- Throws:
- MemberGroupMismatchException
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Member member, Group group, List<String> attrNames) throws MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet all attributes (empty and virtual too) associated with the member in the group which have name in list attrNames.- Specified by:
- getAttributesin interface- AttributesManagerBl
- 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:
- MemberGroupMismatchException
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Member member, Group group, boolean workWithUserAttributes) throws MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet all attributes associated with the member in the group and if workWithUserAttributes is true, gets also all non-empty user and member attributes.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- group- group to get the attributes from
- workWithUserAttributes- if true returns also user and member attributes (user is automatically get from member)
- Returns:
- list of attributes
- Throws:
- MemberGroupMismatchException
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Member member, Group group, List<String> attrNames, boolean workWithUserAttributes) throws MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet all attributes associated with the member in the group which have name in list attrNames (empty too). If workWithUserAttribute is true, return also all user attributes in list of attrNames (with virtual attributes too).- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- group- group to get the attributes from
- attrNames- list of attributes' names
- workWithUserAttributes- if true returns also user and member attributes (user is automatically get from member)
- Returns:
- list of attributes
- Throws:
- MemberGroupMismatchException
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGets all non-empty attributes associated with the member on the resource and if workWithUserAttributes is true, gets also all non-empty user, user-facility and member attributes.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- resource- to get the attributes from
- workWithUserAttributes- if true returns also user-facility, user and member attributes (user is automatically get from member a facility is get from resource)
- Returns:
- list of attributes
- Throws:
- MemberResourceMismatchException- !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Member member, Resource resource, List<String> attrNames, boolean workWithUserAttributes) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGets selected non-empty attributes associated with the member and the resource. It returns member and member-resource attributes and also user and user-facility attributes if workWithUserAttributes is true. Attributes are selected by list of attr_names. Empty list means all attributes.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- resource- to get the attributes from
- workWithUserAttributes- if true returns also user and user-facility attributes (user is automatically get from member and facility is get from resource)
- Returns:
- list of selected attributes
- Throws:
- MemberResourceMismatchException- !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Group group, Member member, Resource resource, List<String> attrNames, boolean workWithUserAttributes) throws MemberResourceMismatchException, GroupResourceMismatchException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlGets selected attributes associated with the member, group and the resource. It returns member, member-resource and member-group attributes and also user and user-facility attributes if workWithUserAttributes is true. Attributes are selected by list of attr_names. Empty list means all non-empty attributes.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- group to get the attributes from
- member- to get the attributes from
- resource- to get the attributes from
- workWithUserAttributes- if true returns also user and user-facility attributes (user is automatically get from member and facility is get from resource)
- Returns:
- list of selected attributes
- Throws:
- MemberResourceMismatchException
- GroupResourceMismatchException- !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
- MemberGroupMismatchException
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Member member, boolean workWithUserAttributes) Description copied from interface:AttributesManagerBlGet all non-empty attributes associated with the member and if workWithUserAttributes is true, get all non-empty attributes associated with user, who is this member.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all non-empty attributes associated with the member.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all attributes associated with the member which have name in list attrNames (empty and virtual too).- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all attributes associated with the group which have name in list attrNames (empty too). Virtual attribute too.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all attributes associated with the resource which have name in list attrNames (empty too). Virtual attribute too.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Member member, List<String> attrNames, boolean workWithUserAttributes) Description copied from interface:AttributesManagerBlGet all attributes associated with the member which have name in list attrNames (empty too) Virtual attributes too.If workWithUserAttribute is true, return also all user attributes in list of attrNames (with virtual attributes too). - Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- attrNames- list of attributes' names
- workWithUserAttributes- if user attributes need to be return too
- Returns:
- list of member (and also if needed user) attributes
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group, Member member, List<String> attrNames) throws GroupResourceMismatchException, MemberResourceMismatchException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet all attributes by the list of attrNames if they are in one of these namespaces: - member - group - member-group - resource - member-resource - group-resource - user (get from member object) - facility (get from resource object) - user-facilityReturn all attributes even if they are empty or virtual. PRIVILEGE: Get only those attributes the principal has access to. - Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource-
- group-
- attrNames- list of attributes' names
- Returns:
- list of attributes
- Throws:
- GroupResourceMismatchException- if resource and group are not from the same vo
- MemberResourceMismatchException- if member and resource are not from the same vo
- MemberGroupMismatchException
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all attributes associated with the vo which have name in list attrNames (empty and virtual too).- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- vo- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all attributes associated with the UserExtSource which have name in list attrNames (empty and virtual too).- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- ues- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all non-empty attributes associated with the user on the facility.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- to get the attributes from
- user- to get the attributes from
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all entityless attributes with subject equaled String key- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- key-
- Returns:
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all non-empty attributes associated with the user.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- to get the attributes from
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all attributes associated with the user which have name in list attrNames (empty and virtual too).- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- to get the attributes from
- attrNames- list of attributes' names
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all non-empty attributes associated with the host- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- host- host to get attributes from
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all attributes associated with the host which have name in list attrNames (empty and virtual too). Empty list attrNames will return no attributes.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- host- host to get attributes for
- attrNames- list of attributes' names
- Returns:
- list of attributes
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all non-empty attributes associated with the group on resource.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- group-
- Returns:
- list of attributes
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) throws GroupResourceMismatchException - Specified by:
- getAttributesin interface- AttributesManagerBl
- Throws:
- GroupResourceMismatchException
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group, List<String> attrNames, boolean workWithGroupAttributes) throws GroupResourceMismatchException Description copied from interface:AttributesManagerBlGet selected attributes associated with the group on resource. Get also empty and virtual attributes if they are selected in the list. If list is empty, return all possible non-empty attributes.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- resource- the resource
- group- the group
- attrNames- list of selected attribtues
- workWithGroupAttributes- if true, get also group attributes
- Returns:
- list of selected attributes associated with the group on resource
- Throws:
- GroupResourceMismatchException
 
- 
getAttributespublic List<Attribute> getAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet all non-empty member, user, member-resource and user-facility attributes.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- resource-
- user-
- member-
- Returns:
- Throws:
- MemberResourceMismatchException
 
- 
getAttributesDescription copied from interface:AttributesManagerBlGet all non-empty attributes associated with the UserExtSource.- Specified by:
- getAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- ues- to get the attributes from
- Returns:
- list of attributes
 
- 
getAttributesByAttributeDefinitionpublic List<Attribute> getAttributesByAttributeDefinition(PerunSession sess, AttributeDefinition attributeDefinition) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlReturns all attributes with not-null value which fits the attributeDefinition. Can't process core or virtual attributes.- Specified by:
- getAttributesByAttributeDefinitionin interface- AttributesManagerBl
- Parameters:
- sess-
- attributeDefinition- can't be core or virtual attribute
- Returns:
- list of attributes
- Throws:
- WrongAttributeAssignmentException
 
- 
getAttributesDefinitionDescription copied from interface:AttributesManagerBlGet all attributes definition (attribute without defined value).- Specified by:
- getAttributesDefinitionin interface- AttributesManagerBl
- Returns:
- List od attributes definitions
 
- 
getAttributesDefinitionpublic List<AttributeDefinition> getAttributesDefinition(PerunSession sess, List<String> listOfAttributesNames) throws AttributeNotExistsException Description copied from interface:AttributesManagerBlFrom listOfAttributesNames get list of attributeDefinitions- Specified by:
- getAttributesDefinitionin interface- AttributesManagerBl
- Parameters:
- sess-
- listOfAttributesNames-
- Returns:
- list of AttributeDefinitions
- Throws:
- AttributeNotExistsException
 
- 
getAttributesDefinitionByNamespacepublic List<AttributeDefinition> getAttributesDefinitionByNamespace(PerunSession sess, String namespace) Description copied from interface:AttributesManagerBlGet attributes definition (attribute without defined value) with specified namespace.- Specified by:
- getAttributesDefinitionByNamespacein interface- AttributesManagerBl
- Parameters:
- namespace- get only attributes with this namespace
- Returns:
- List of attributes
 
- 
getAttributesDefinitionWithRightspublic List<AttributeDefinition> getAttributesDefinitionWithRights(PerunSession sess, List<PerunBean> entities) Description copied from interface:AttributesManagerBlGet all (for entities) attributeDefinitions which user has right to READ them and fill attribute writable (if user has also right to WRITE them). For entities means that return only those attributeDefinition which are in namespace of entities or possible combination of entities. For Example: If enityties are "member, user, resource" then return only AD in namespaces "member, user, resource and resource-member"- Specified by:
- getAttributesDefinitionWithRightsin interface- AttributesManagerBl
- Parameters:
- sess-
- entities- list of perunBeans (member, user...)
- Returns:
- list of AttributeDefinitions with rights (writable will be filled correctly by user in session)
 
- 
getCriticalAttributeActionsDescription copied from interface:AttributesManagerBlReturns critical actions on given attribute.- Specified by:
- getCriticalAttributeActionsin interface- AttributesManagerBl
- Parameters:
- sess- session
- attrId- attribute definition id
- Returns:
- list of critical actions
 
- 
getEntitylessAttributeForUpdatepublic Attribute getEntitylessAttributeForUpdate(PerunSession sess, String key, String attrName) throws AttributeNotExistsException Description copied from interface:AttributesManagerBlReturns entityless attribute by attr_id and key (subject) for update!For update - means lock row with attr_values in DB (entityless_attr_values with specific subject and attr_id) Not lock row in attr_names! IMPORTANT: This method use "select for update" and locks row for transaction. Use clever. If attribute with subject=key not exists, create new one with null value and return it. - Specified by:
- getEntitylessAttributeForUpdatein interface- AttributesManagerBl
- Parameters:
- sess-
- key-
- attrName-
- Returns:
- attr_value in string
- Throws:
- AttributeNotExistsException- throw exception if attribute with value not exists in DB
 
- 
getEntitylessAttributesDescription copied from interface:AttributesManagerBlGet all entityless attributes with attributeName- Specified by:
- getEntitylessAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- attrName-
- Returns:
- attribute
 
- 
getEntitylessAttributesWithKeyspublic Map<String,Attribute> getEntitylessAttributesWithKeys(PerunSession sess, String attrName) throws AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlGet entityless attributes mapped by their keys.- Specified by:
- getEntitylessAttributesWithKeysin interface- AttributesManagerBl
- Parameters:
- sess- session
- attrName- attribute name
- Returns:
- Map of entityless attributes mapped by their keys
- Throws:
- AttributeNotExistsException- when the attribute definition for attrName doesn't exist
- WrongAttributeAssignmentException- when passed non-entityless attribute
 
- 
getEntitylessAttributesWithKeyspublic Map<String,Attribute> getEntitylessAttributesWithKeys(PerunSession sess, String attrName, List<String> keys) throws AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlGet entityless attributes mapped by their keys. Returns only attributes for specified keys.- Specified by:
- getEntitylessAttributesWithKeysin interface- AttributesManagerBl
- Parameters:
- sess- session
- attrName- attribute name
- Returns:
- Map of entityless attributes mapped by their keys
- Throws:
- AttributeNotExistsException- when the attribute definition for attrName doesn't exist, or when there is no such attribute for one of the specified keys
- WrongAttributeAssignmentException- when passed non-entityless attribute
 
- 
getEntitylessKeysDescription copied from interface:AttributesManagerBlReturns list of Keys which fits the attributeDefinition.- Specified by:
- getEntitylessKeysin interface- AttributesManagerBl
- Parameters:
- sess-
- attributeDefinition-
- Returns:
 
- 
getEntitylessStringAttributeMappingpublic Map<String,String> getEntitylessStringAttributeMapping(PerunSession sess, String attributeName) throws WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerBlGets map from keys to string values for an entityless attribute.- Specified by:
- getEntitylessStringAttributeMappingin interface- AttributesManagerBl
- Parameters:
- sess- session
- attributeName- full attribute name
- Returns:
- unordered hashmap
- Throws:
- WrongAttributeAssignmentException
- AttributeNotExistsException
 
- 
getFriendlyNameFromAttributeNameDescription copied from interface:AttributesManagerBlGets the friendly name from the attribute name.- Specified by:
- getFriendlyNameFromAttributeNamein interface- AttributesManagerBl
- Parameters:
- attributeName-
- Returns:
- the friendly name from the attribute name
 
- 
getIdpAttributeDefinitionsDescription copied from interface:AttributesManagerBlReturns list of definitions of IdP attributes that are filled to fedInfo- Specified by:
- getIdpAttributeDefinitionsin interface- AttributesManagerBl
- Parameters:
- sess- session
- Returns:
- list of attribute definitions
 
- 
getLoginsDescription copied from interface:AttributesManagerBlGet all non-empty attributes with user's logins.- Specified by:
- getLoginsin interface- AttributesManagerBl
- Parameters:
- sess-
- user-
- Returns:
- list of attributes with login
 
- 
getNamespaceFromAttributeNameDescription copied from interface:AttributesManagerBlGets the namespace from the attribute name.- Specified by:
- getNamespaceFromAttributeNamein interface- AttributesManagerBl
- Parameters:
- attributeName-
- Returns:
- the namespace from the attribute name
 
- 
getPerunBeanIdsForUniqueAttributeValuepublic Set<Pair<Integer,Integer>> getPerunBeanIdsForUniqueAttributeValue(PerunSession sess, Attribute attribute) Description copied from interface:AttributesManagerBlFinds ids of PerunBeans that have the attribute's value for the attribute. The attribute must be marked as unique.This method is intended for finding whether a unique value is already assigned, and if yes, then whether it is the same object which is being updated or some other object. This is typically needed in checkAttributeSemantics() method of attribute modules. The return type is a set of pairs of ids. It is a set because for collection types (ArrayList and LinkedHashMap) each of the entries in the collection may be assigned to a different object. The set contains pairs, because some attribute types are attached to a pair of PerunBeans (e.g. group_resource) and some are attached to single beans (e.g. group). If the attribute is attached to a pair of beans, the returned Pairs contain ids of the objects in the order of beans as listed in the attribute namespace, e.g. for group_resource attribute the left part of the pair contains group id, and the right part contains resource id. If the attribute is attached to a single bean, the left part of the pair contains the id, and the right part contains zero. For simple value types (String, Integer, Boolean), this methods returns either an empty set (if the simple value is not assigned yet), or a set containing a single Pair. For collection values types (ArrayList, LinkedHashMap), this method returns an empty set, or a set with one or more pairs. - Specified by:
- getPerunBeanIdsForUniqueAttributeValuein interface- AttributesManagerBl
- Parameters:
- sess- session
- attribute- attribute with a filled value that will be checked for uniqueness
- Returns:
- a Set of Pairs with ids of PerunBeans that have the attribute value
 
- 
getPerunBlGets the perunBl.- Returns:
- The perunBl.
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, List<Service> services, Resource resource) Description copied from interface:AttributesManagerBlGet resource attributes which are required by selected services.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- services-
- resource- you get attributes for this resource
- Returns:
- list of resource attributes which are required by selected services.
 
- 
getRequiredAttributesDescription copied from interface:AttributesManagerBlGet resource attributes which are required by services which is related to this resource.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- 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.
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Member member, Resource resource) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet member-resource attributes which are required by services which are relater to this member-resource.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- you get attributes for this member and the resource
- resource- you get attributes for this resource and the member
- Returns:
- list of facility attributes which are required by services which are assigned to resource.
- Throws:
- MemberResourceMismatchException
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlIf workWithUserAttribute is false => Get member-resource attributes which are required by services which are relater to this member-resource. If workWithUserAttributes is true => Get member-resource, user-facility, user and member attributes. (user is get from member and facility from resource)- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- you get attributes for this member and the resource
- resource- you get attributes for this resource and the member
- workWithUserAttributes- method can process also user, user-facility and member attributes (user is automatically get from member a facility is get from resource)
- Returns:
- list of member-resource attributes or if workWithUserAttributes is true return list of member-resource, user, member and user-facility attributes
- Throws:
- MemberResourceMismatchException- !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
 
- 
getRequiredAttributesDescription copied from interface:AttributesManagerBlGet user-facility attributes which are required by services which are related to this user-facility.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility from which the services are taken
- user- you get attributes for this user
- Returns:
- list of facility attributes which are required by services which are assigned to facility.
 
- 
getRequiredAttributesDescription copied from interface:AttributesManagerBlGet user attributes which are required by services which are relater to this user.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user-
- Returns:
- list of user's attributes which are required by services which are related to this user
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Member member, boolean workWithUserAttributes) Description copied from interface:AttributesManagerBlGet member attributes which are required by services which are relater to this member and if is workWithUserAttributes = true, then also user required attributes- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- you get attributes for this member
- workWithUserAttributes- method can process also user and user-facility attributes (user is automatically get from member a facility is get from resource)
- Returns:
- list of member, user attributes which are required by services which are related to this member
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Member member, Group group, boolean workWithUserAttributes) throws MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet member, member-group attributes which are required by services which are related to this member and group. If workWithUserAttributes = TRUE, then also user attributes are returned.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- you get attributes for this member
- group- you get attribute for this group
- workWithUserAttributes- method can process also user if this is TRUE
- Returns:
- list of attributes which are required by services which are related to this member and group
- Throws:
- MemberGroupMismatchException
 
- 
getRequiredAttributesDescription copied from interface:AttributesManagerBlGet facility attributes which are required by all services which are connected to this facility.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- 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.
 
- 
getRequiredAttributesDescription copied from interface:AttributesManagerBlGet facility attributes which are required by the service.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- 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
 
- 
getRequiredAttributesDescription copied from interface:AttributesManagerBlGet vo attributes which are required by the service.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- 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
 
- 
getRequiredAttributesDescription copied from interface:AttributesManagerBlGet resource attributes which are required by the service.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- 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
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet member-resource attributes which are required by the service.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- 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:
- MemberResourceMismatchException
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource, boolean workWithUserAttributes) throws MemberResourceMismatchException - Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Throws:
- MemberResourceMismatchException
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group, Member member, boolean workWithUserAttributes) throws MemberResourceMismatchException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlGet member, member-resource and member-group attributes which are required by the service. if workWithUserAttributes == TRUE return also user and user-facility attributes- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- resource- you get attributes for this resource and the member and group
- group- you get attributes for this group and resource and member
- member- you get attributes for this member and the resource and group
- workWithUserAttributes- if TRUE also user and user-facility attributes
- Returns:
- list of attributes which are required by the service.
- Throws:
- MemberResourceMismatchException
- GroupResourceMismatchException
 
- 
getRequiredAttributespublic HashMap<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, Facility facility, Resource resource, List<Member> members, boolean workWithUserAttributes) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet member-resource, member, user-facility and user attributes which are required by service for each member in list of members. If workWithUserAttributes is false return only member-resource attributes. !!! Method checks if members list is not empty (returns empty HashMap)!!!- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- service- attribute required by this service
- resource- you get attributes for this resource
- members- you get attributes for this list of members
- workWithUserAttributes- if true method can process also user, user-facility and member attributes
- Returns:
- map of member objects and his list of attributes
- Throws:
- MemberResourceMismatchException- if methods checkMemberIsFromTheSameVoLikeResource finds that user is not from same vo like resource
 
- 
getRequiredAttributespublic HashMap<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, Resource resource, List<Member> members) Description copied from interface:AttributesManagerBlGet member-resource attributes which are required by service for each member in list of members. !!! Method checks if members list is not empty (returns empty HashMap)!!!- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- 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 objects and his list of attributes
 
- 
getRequiredAttributespublic HashMap<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Resource resource, Service service, List<Member> members) Description copied from interface:AttributesManagerBlGet member attributes which are required by service for each member in list of members. !!! Method checks if members list is not empty (returns empty HashMap)!!!- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- 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 objects and his list of attributes
 
- 
getRequiredAttributespublic HashMap<User,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, Facility facility, List<User> users) Description copied from interface:AttributesManagerBlGet user-facility attributes which are required by the service for each user in list of users. !!! Method checks if members list is not empty (returns empty HashMap)!!!- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- 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 user and his list of attributes
 
- 
getRequiredAttributespublic HashMap<User,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, List<User> users) Description copied from interface:AttributesManagerBlGet user attributes which are required by the service for each user in list of users. !!! Method checks if members list is not empty (returns empty HashMap)!!!- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- service- attribute required by this service
- users- you get attributes for this user and facility
- Returns:
- map of user and his list of attributes
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Group group) throws MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet member-group attributes which are required by the service.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- 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:
- MemberGroupMismatchException
 
- 
getRequiredAttributespublic Map<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, List<Member> members, Group group) throws MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet member-group attributes which are required by the service, for the given members and the given group.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- session
- service- service
- members- members
- group- group
- Returns:
- Member-Group attributes grouped by members
- Throws:
- MemberGroupMismatchException- if some of the given members is not from the same vo as the given group
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Group group, boolean workWithUserAttributes) throws MemberGroupMismatchException - Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Throws:
- MemberGroupMismatchException
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Facility facility, Resource resource, User user, Member member) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet memner, user, member-resource, user-facility attributes which are required by the service.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- service-
- facility-
- resource-
- user-
- member-
- Returns:
- Throws:
- MemberResourceMismatchException
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, List<Service> services, Facility facility, Resource resource, User user, Member member) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet member, user, member-resource, user-facility attributes which are required by the services. The same attributes are returned only once.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- session
- services- services
- facility- facility
- resource- resource
- user- user
- member- member
- Returns:
- List of member, user, member-resource and user-facility attributes required by given services
- Throws:
- MemberResourceMismatchException- member resource mismatch exception
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group, boolean withGroupAttributes) throws GroupResourceMismatchException Description copied from interface:AttributesManagerBlGet group-resource attributes which are required by the service.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- resource-
- group-
- withGroupAttributes- get also group attributes (which is required by the service) for this group
- Returns:
- list of attributes which are required by the service.
- Throws:
- GroupResourceMismatchException
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, List<Service> services, Resource resource, Group group, boolean withGroupAttributes) throws GroupResourceMismatchException Description copied from interface:AttributesManagerBlGet group-resource attributes which are required by the services.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- session
- services- services
- resource- resource
- group- group
- withGroupAttributes- get also group attributes (which is required by the service) for this group
- Returns:
- list of attributes which are required by the service.
- Throws:
- GroupResourceMismatchException- group resource mismatch exception
 
- 
getRequiredAttributesDescription copied from interface:AttributesManagerBlGet member attributes which are required by the service.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- member- you get attributes for this member
- Returns:
- list of attributes which are required by the service.
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group) throws GroupResourceMismatchException - Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Throws:
- GroupResourceMismatchException
 
- 
getRequiredAttributesDescription copied from interface:AttributesManagerBlGet host attributes which are required by service- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- service-
- host-
- Returns:
 
- 
getRequiredAttributes- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
 
- 
getRequiredAttributesDescription copied from interface:AttributesManagerBlGet user attributes which are required by the service.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- user- you get attributes for this user
- Returns:
- list of attributes which are required by the service.
 
- 
getRequiredAttributespublic List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Facility facility, User user) Description copied from interface:AttributesManagerBlGet user-facility attributes which are required by the service.- Specified by:
- getRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- service- attribute required by this service you'll get
- facility- you get attributes for this facility and the user
- user- you get attributes for this user and the facility
- Returns:
- list of attributes which are required by the service.
 
- 
getRequiredAttributesDefinitionpublic List<AttributeDefinition> getRequiredAttributesDefinition(PerunSession sess, Service service) Description copied from interface:AttributesManagerBlGet all attributes which are required by service. Required attributes are requisite for Service to run.- Specified by:
- getRequiredAttributesDefinitionin interface- AttributesManagerBl
- Parameters:
- sess- sess
- service- service from which the attributes will be listed
- Returns:
- All attributes which are required by service.
 
- 
getRequiredAttributesForGroupspublic Map<Group,List<Attribute>> getRequiredAttributesForGroups(PerunSession sess, Service service, List<Group> groups) Description copied from interface:AttributesManagerBlGet group attributes which are required by the given service for given groups.- Specified by:
- getRequiredAttributesForGroupsin interface- AttributesManagerBl
- Parameters:
- sess- session
- service- service for which are taken the required attributes
- groups- groups
- Returns:
- attributes mapped by their groups
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility) Description copied from interface:AttributesManagerBlGet facility attributes which are required by services. Services are known from the resource.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- 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
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource) Description copied from interface:AttributesManagerBlGet resource attributes which are required by services. Services are known from the resourceToGetServicesFrom.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- resource- resource from which the services are taken and for which you want to get the attributes
- Returns:
- list of resource attributes which are required by services which are assigned to resource.
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet member-resource attributes which are required by services. Services are known from the resourceToGetServicesFrom.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- member- you get attributes for this member
- resource- you get attributes for this resource and the member
- Returns:
- list of facility attributes which are required by services which are assigned to resource.
- Throws:
- MemberResourceMismatchException
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource, boolean workWithUserAttributes) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet member-resource attributes which are required by services and if workWithUserAttributes is true also user, user-facility and member attributes. Services are known from the resourceToGetServicesFrom.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resourceToGetServicesFrom- getRequired attributes from services which are assigned on this resource
- member- you get attributes for this member and the resource
- resource- you get attributes for this resource and the member
- workWithUserAttributes- method can process also user, user-facility and member attributes (user is automatically get from member a facility is get from resource)
- Returns:
- list of member-resource attributes (if workWithUserAttributes is true also user, user-facility and member attributes) which are required by services which are assigned to another resource.
- Throws:
- MemberResourceMismatchException- !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group) throws MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet member-group attributes which are required by services. Services are known from the resourceToGetServicesFrom.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- member- you get attributes for this member
- group- you get attributes for this group and the member
- Returns:
- list of member-group's attributes which are required by services defined on specified resource
- Throws:
- MemberGroupMismatchException
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group, boolean workWithUserAttributes) throws MemberGroupMismatchException Description copied from interface:AttributesManagerBlGet member-group attributes which are required by services if workWithUserAttributes is true also user and member attributes. Services are known from the resourceToGetServicesFrom.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- member- you get attributes for this member
- group- you get attributes for this group and the member
- workWithUserAttributes- method can process also user and member attributes (user is automatically get from member)
- Returns:
- list of member-group's attributes which are required by services defined on specified resource
- Throws:
- MemberGroupMismatchException
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, User user) Description copied from interface:AttributesManagerBlGet user-facility attributes which are required by services. Services are known from the resource.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- 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 user-facility attributes which are required by service
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, Resource resource, User user, Member member) throws MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet member, user, member-resource and user-facility attributes which are required by services which are defined on "resourceToGetServicesFrom" resource.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resourceToGetServicesFrom- getRequired attributes from services which are assigned on this resource
- facility-
- resource- you get attributes for this resource and the member
- user-
- member- you get attributes for this member and the resource
- Returns:
- list of member-resource attributes which are required by services which are assigned to specified resource
- Throws:
- MemberResourceMismatchException
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member) Description copied from interface:AttributesManagerBlGet member attributes which are required by services defined on specified resource- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resourceToGetServicesFrom- getRequired attributes from services which are assigned on this resource
- member- you get attributes for this member
- Returns:
- list of member attributes which are required by services defined on specified resource
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group) Description copied from interface:AttributesManagerBlGet the group-resource attributes which are required by services. Services are known from the resource.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- resourceToGetServicesFrom- resource from which the services are taken
- resource-
- group-
- Returns:
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Group group) - Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group, boolean workWithGroupAttributes) throws GroupResourceMismatchException - Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Throws:
- GroupResourceMismatchException
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Host host) Description copied from interface:AttributesManagerBlGet the host attributes which are required by services. Services are known from the resource.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- resourceToGetServicesFrom-
- host-
- Returns:
 
- 
getResourceRequiredAttributespublic List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, User user) Description copied from interface:AttributesManagerBlGet user attributes which are required by services. Services are known from the resource.- Specified by:
- getResourceRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resourceToGetServicesFrom- resource from which the services are taken
- user- you get attributes for this user
- Returns:
- list of users attributes which are required by service
 
- 
getResourceRequiredAttributesDefinitionpublic List<AttributeDefinition> getResourceRequiredAttributesDefinition(PerunSession sess, Resource resource) Description copied from interface:AttributesManagerBlGet attributes definions required by all services assigned on the resource.- Specified by:
- getResourceRequiredAttributesDefinitionin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource-
- Returns:
- attributes definions required by all services assigned on the resource.
 
- 
getRichAttributesWithHoldersForAttributeDefinitionpublic List<RichAttribute> getRichAttributesWithHoldersForAttributeDefinition(PerunSession sess, AttributeDefinition attrDef, RichAttribute aidingAttr) throws AttributeNotExistsException, UserNotExistsException, VoNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException, MemberResourceMismatchException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlMethod get attribute Definition attrDef and aidingAttr which only holds one or two useful objects in holders. Thanks useful objects, method find all possibly richAttributes which can be get on specific attrDef with all existing combinations of needed objects.Example: I am looking for Member attrDef and I have primaryHolder: User. So i will find all members of this user and return all richAttributes of combination attribute + specific member in primaryHolder. - Specified by:
- getRichAttributesWithHoldersForAttributeDefinitionin interface- AttributesManagerBl
- Parameters:
- sess-
- attrDef-
- aidingAttr-
- Returns:
- Throws:
- AttributeNotExistsException
- UserNotExistsException
- VoNotExistsException
- WrongAttributeAssignmentException
- GroupResourceMismatchException
- MemberResourceMismatchException
- MemberGroupMismatchException
 
- 
getUserFacilityAttributesForAnyUserDescription copied from interface:AttributesManagerBlGet All user_facility attributes for any existing user- Specified by:
- getUserFacilityAttributesForAnyUserin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- Returns:
- list of user facility attributes
 
- 
getUserIdsByLoginDescription copied from interface:AttributesManagerBlGets IDs of users who use the given login in any namespace.- Specified by:
- getUserIdsByLoginin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- login- login
- Returns:
- list of user IDs
 
- 
getUserVirtualAttributeModulepublic UserVirtualAttributesModuleImplApi getUserVirtualAttributeModule(PerunSession sess, AttributeDefinition attribute) Description copied from interface:AttributesManagerBlGet user virtual attribute module by the attribute.- Specified by:
- getUserVirtualAttributeModulein interface- AttributesManagerBl
- Parameters:
- sess-
- attribute- attribute for which you get the module
- Returns:
- instance of user attribute module
 
- 
getVirtualAttributesDescription copied from interface:AttributesManagerBlGet all virtual attributes associated with the member-resource attributes.- Specified by:
- getVirtualAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- to get the attributes from
- resource- to get the attributes from
- Returns:
- list of attributes
 
- 
getVirtualAttributesDescription copied from interface:AttributesManagerBlGet all virtual attributes associated with the user on the facility.- Specified by:
- getVirtualAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- to get the attributes from
- user- to get the attributes from
- Returns:
- list of attributes
 
- 
getVirtualAttributesDescription copied from interface:AttributesManagerBlGet all virtual attributes associated with the user.- Specified by:
- getVirtualAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- to get the attributes from
- Returns:
- list of attributes
 
- 
initializeprotected void initialize()
- 
isAttributeActionCriticalpublic boolean isAttributeActionCritical(PerunSession sess, AttributeDefinition attr, AttributeAction action) Description copied from interface:AttributesManagerBlChecks if the action is critical on given attribute.- Specified by:
- isAttributeActionCriticalin interface- AttributesManagerBl
- Parameters:
- sess- session
- attr- attribute definition
- action- critical action
- Returns:
- true if action is critical, false otherwise
 
- 
isAttributeValueBlockedDescription copied from interface:AttributesManagerBlChecks 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- Specified by:
- isAttributeValueBlockedin interface- AttributesManagerBl
- 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.)
 
- 
isAttributeActionGloballyCriticalpublic boolean isAttributeActionGloballyCritical(PerunSession sess, AttributeDefinition attr, AttributeAction action) Description copied from interface:AttributesManagerBlChecks if the action is critical on given attribute for all objects.- Specified by:
- isAttributeActionGloballyCriticalin interface- AttributesManagerBl
- Parameters:
- sess- session
- attr- attribute definition
- action- critical action
- Returns:
- true if action is globally critical, false otherwise
 
- 
isCoreAttributeDescription copied from interface:AttributesManagerBlDetermine if attribute is core attribute.- Specified by:
- isCoreAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- attribute-
- Returns:
- true if attribute is core attribute
 
- 
isCoreManagedAttributeDescription copied from interface:AttributesManagerBlDetermine if attribute is core-managed attribute.- Specified by:
- isCoreManagedAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- attribute-
- Returns:
- true if attribute is core-managed
 
- 
isDefAttributeDescription copied from interface:AttributesManagerBlDetermine if attribute is defined (def) attribute.- Specified by:
- isDefAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- attribute-
- Returns:
- true if attribute is defined attribute false otherwise
 
- 
isFromNamespaceDescription copied from interface:AttributesManagerBlDetermine if attribute is from specified namespace.- Specified by:
- isFromNamespacein interface- AttributesManagerBl
- Parameters:
- sess-
- attribute-
- namespace-
- Returns:
- true if the attribute is from specified namespace false otherwise
 
- 
isLoginAlreadyUsedDescription copied from interface:AttributesManagerBlCheck if the login is already in use for some namespace or globally- Specified by:
- isLoginAlreadyUsedin interface- AttributesManagerBl
- 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
 
- 
isOptAttributeDescription copied from interface:AttributesManagerBlDetermine if attribute is optional (opt) attribute.- Specified by:
- isOptAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- attribute-
- Returns:
- true if attribute is optional attribute false otherwise
 
- 
isTrulyRequiredAttributepublic boolean isTrulyRequiredAttribute(PerunSession sess, Facility facility, AttributeDefinition attributeDefinition) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if this the attribute is truly required for the facility right now. Truly means that the nothing (member, resource...) is invalid.- Specified by:
- isTrulyRequiredAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- attributeDefinition-
- Returns:
- Throws:
- WrongAttributeAssignmentException
 
- 
isTrulyRequiredAttributepublic boolean isTrulyRequiredAttribute(PerunSession sess, Resource resource, AttributeDefinition attributeDefinition) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if this the attribute is truly required for the resource right now. Truly means that the nothing (member, resource...) is invalid.- Specified by:
- isTrulyRequiredAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- attributeDefinition-
- Returns:
- Throws:
- WrongAttributeAssignmentException
 
- 
isTrulyRequiredAttributepublic boolean isTrulyRequiredAttribute(PerunSession sess, Member member, AttributeDefinition attributeDefinition) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if this the attribute is truly required for the member right now. Truly means that the nothing (member, resource...) is invalid.- Specified by:
- isTrulyRequiredAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- attributeDefinition-
- Returns:
- Throws:
- WrongAttributeAssignmentException
 
- 
isTrulyRequiredAttributepublic boolean isTrulyRequiredAttribute(PerunSession sess, User user, AttributeDefinition attributeDefinition) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if this the attribute is truly required for the user right now. Truly means that the nothing (member, resource...) is invalid.- Specified by:
- isTrulyRequiredAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- user-
- attributeDefinition-
- Returns:
- Throws:
- WrongAttributeAssignmentException
 
- 
isTrulyRequiredAttributepublic boolean isTrulyRequiredAttribute(PerunSession sess, Facility facility, User user, AttributeDefinition attributeDefinition) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlCheck if this the attribute is truly required for the user and the facility right now. Truly means that the nothing (member, resource...) is invalid.- Specified by:
- isTrulyRequiredAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- user-
- attributeDefinition-
- Returns:
- Throws:
- WrongAttributeAssignmentException
 
- 
isTrulyRequiredAttributepublic boolean isTrulyRequiredAttribute(PerunSession sess, Member member, Resource resource, AttributeDefinition attributeDefinition) throws WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlCheck if this the attribute is truly required for the member and the resource right now. Truly means that the nothing (member, resource...) is invalid.- Specified by:
- isTrulyRequiredAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- resource-
- attributeDefinition-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- MemberResourceMismatchException
 
- 
isTrulyRequiredAttributepublic boolean isTrulyRequiredAttribute(PerunSession sess, Member member, Group group, AttributeDefinition attributeDefinition) throws WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlCheck if this the attribute is truly required for the member and the group right now. Truly means that the nothing (member, group...) is invalid.- Specified by:
- isTrulyRequiredAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- group-
- attributeDefinition-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- MemberGroupMismatchException
 
- 
isVirtAttributeDescription copied from interface:AttributesManagerBlDetermine if attribute is virtual (virt) attribute.- Specified by:
- isVirtAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- attribute-
- Returns:
- true if attribute is virtual attribute false otherwise
 
- 
mergeAttributeValuepublic Attribute mergeAttributeValue(PerunSession sess, User user, Attribute attribute) throws WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlMerges attribute value if the attribute type is list or map. In other cases it only stores new value. If the type is list, new values are added to the current stored list. It the type is map, new values are added and existing are overwritten with new values, but only if there is some change.- Specified by:
- mergeAttributeValuein interface- AttributesManagerBl
- Parameters:
- sess-
- user-
- attribute-
- Returns:
- attribute with updated value
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- WrongAttributeAssignmentException
 
- 
mergeAttributeValuepublic Attribute mergeAttributeValue(PerunSession sess, Member member, Attribute attribute) throws WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlMerges attribute value if the attribute type is list or map. In other cases it only stores new value. If the type is list, new values are added to the current stored list. It the type is map, new values are added and existing are overwritten with new values, but only if there is some change.- Specified by:
- mergeAttributeValuein interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- attribute-
- Returns:
- attribute with updated value
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- WrongAttributeAssignmentException
 
- 
mergeAttributeValuepublic Attribute mergeAttributeValue(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlMerges attribute value if the attribute type is list or map. In other cases it only stores new value. If the type is list, new values are added to the current stored list. It the type is map, new values are added and existing are overwritten with new values, but only if there is some change.- Specified by:
- mergeAttributeValuein interface- AttributesManagerBl
- Parameters:
- sess-
- group-
- attribute-
- Returns:
- attribute with updated value
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- WrongAttributeAssignmentException
 
- 
mergeAttributeValueInNestedTransactionpublic Attribute mergeAttributeValueInNestedTransaction(PerunSession sess, User user, Attribute attribute) throws WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlMerges attribute value if the attribute type is list or map. In other cases it only stores new value. If the type is list, new values are added to the current stored list. It the type is map, new values are added and existing are overwritten with new values, but only if there is some change.This method creates nested transaction to prevent storing value to DB if it throws any exception. - Specified by:
- mergeAttributeValueInNestedTransactionin interface- AttributesManagerBl
- Parameters:
- sess-
- user-
- attribute-
- Returns:
- attribute with updated value
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- WrongAttributeAssignmentException
 
- 
mergeAttributeValueInNestedTransactionpublic Attribute mergeAttributeValueInNestedTransaction(PerunSession sess, Member member, Attribute attribute) throws WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlMerges attribute value if the attribute type is list or map. In other cases it only stores new value. If the type is list, new values are added to the current stored list. It the type is map, new values are added and existing are overwritten with new values, but only if there is some change.This method creates nested transaction to prevent storing value to DB if it throws any exception. - Specified by:
- mergeAttributeValueInNestedTransactionin interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- attribute-
- Returns:
- attribute with updated value
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- WrongAttributeAssignmentException
 
- 
mergeAttributesValuespublic void mergeAttributesValues(PerunSession sess, User user, List<Attribute> attributes) throws WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlMerges attributes values if the attribute type is list or map. In other cases it only stores new value. If the type is list, new values are added to the current stored list. It the type is map, new values are added and existing are overwritten with new values, but only if there is some change.- Specified by:
- mergeAttributesValuesin interface- AttributesManagerBl
- Parameters:
- sess-
- user-
- attributes-
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- WrongAttributeAssignmentException
 
- 
mergeAttributesValuespublic void mergeAttributesValues(PerunSession sess, Member member, List<Attribute> attributes) throws WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlMerges attributes values if the attribute type is list or map. In other cases it only stores new value. If the type is list, new values are added to the current stored list. It the type is map, new values are added and existing are overwritten with new values, but only if there is some change.- Specified by:
- mergeAttributesValuesin interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- attributes-
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- WrongAttributeAssignmentException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Facility facility) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all attributes for the facility.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- remove attributes from this facility
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) throws WrongAttributeValueException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlUnset all attributes for the group and resource. If workWithGroupAttributes is true, remove also all group attributes.PRIVILEGE: Remove attributes only when principal has access to write on them. - Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- resource to set on
- group- group to set on
- workWithGroupAttributes- if true, remove also group attributes, if false, remove only group_resource attributes
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongReferenceAttributeValueException- if some reference attribute has illegal value
- GroupResourceMismatchException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Facility facility, boolean removeAlsoUserFacilityAttributes) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all attributes for the facility. If removeAlsoUserFacilityAttributes is true, remove all user-facility attributes of this facility and any user allowed in this facility.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- remove attributes from this facility
- removeAlsoUserFacilityAttributes- if true, remove all user-facility attributes for any user in this facility too
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAllAttributesDescription copied from interface:AttributesManagerBlUnset all attributes for the host.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- host- remove attributes from this host
- Throws:
- WrongAttributeValueException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Vo vo) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all attributes for the vo.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- vo- remove attributes from this vo
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Group group) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all attributes for the group.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- remove attributes from this group
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Resource resource) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all attributes for the resource.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- remove attributes from this resource
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Member member, Resource resource) throws WrongAttributeValueException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlUnset all attributes for the member on the resource.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- remove attributes from this member
- resource- remove attributes from this resources
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- MemberResourceMismatchException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Member member, Group group) throws WrongAttributeValueException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlUnset all attributes for the member in the group.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- remove attributes from this member
- group- remove attributes for this group
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- MemberGroupMismatchException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Member member) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all attributes for the member.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- remove attributes from this member
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Facility facility, User user) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all attributes (user-facility) for the user on the facility.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility-
- user-
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, User user) throws WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlUnset all attributes for the user.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- remove attributes from this user
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- WrongAttributeAssignmentException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, Resource resource, Group group) throws WrongAttributeValueException, GroupResourceMismatchException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all group-resource attributes- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- group-
- Throws:
- GroupResourceMismatchException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAllAttributespublic void removeAllAttributes(PerunSession sess, UserExtSource ues) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all attributes for the user external source.- Specified by:
- removeAllAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- ues- remove attributes from this user external source
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAllGroupResourceAttributespublic void removeAllGroupResourceAttributes(PerunSession sess, Resource resource) throws WrongAttributeValueException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlRemove all non-virtual group-resource attributes assigned to resource- Specified by:
- removeAllGroupResourceAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- GroupResourceMismatchException
 
- 
removeAllMemberResourceAttributesDescription copied from interface:AttributesManagerBlRemove all non-virtual member-resource attributes assigned to resource- Specified by:
- removeAllMemberResourceAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
 
- 
removeAllUserFacilityAttributespublic void removeAllUserFacilityAttributes(PerunSession sess, User user) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all non-virtual user-facility attributes for the user and all facilities- Specified by:
- removeAllUserFacilityAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user-
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, String key, AttributeDefinition attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset particular entityless attribute with subject equals key.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- key- subject of entityless attribute
- attribute- attribute to remove
- Throws:
- WrongAttributeValueException- if the attribute value is wrong/illegal
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException- if the attribute isn't entityless attribute
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, Facility facility, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset particular attribute for the facility. Core attributes can't be removed this way.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- remove attribute from this facility
- attribute- attribute to remove
- Throws:
- WrongAttributeAssignmentException- if attribute isn't facility attribute or if it is core attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, Host host, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlUnset particular attribute for the host. Core attributes can't be removed this way.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- host-
- attribute-
- Throws:
- WrongAttributeAssignmentException- if attribute is not host attribute
- WrongAttributeValueException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, Vo vo, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset particular attribute for the vo. Core attributes can't be removed this way.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- vo- remove attribute from this vo
- attribute- attribute to remove
- Throws:
- WrongAttributeAssignmentException- if attribute isn't vo attribute or if it is core attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, Group group, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset particular attribute for the group. Core attributes can't be removed this way.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- remove attribute from this group
- attribute- attribute to remove
- Throws:
- WrongAttributeAssignmentException- if attribute isn't group attribute or if it is core attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributepublic boolean removeAttribute(PerunSession sess, Resource resource, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset particular attribute for the resource. Core attributes can't be removed this way.- Specified by:
- removeAttributein interface- AttributesManagerBl
- 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:
- WrongAttributeAssignmentException- if attribute isn't resource attribute or if it is core attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, Member member, Resource resource, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlUnset particular attribute for the member on the resource. Core attributes can't be removed this way.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- remove attribute from this member
- resource- remove attributes for this resource
- attribute- attribute to remove
- Throws:
- WrongAttributeAssignmentException- if attribute isn't member-resource attribute or if it is core attribute
- MemberResourceMismatchException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, Member member, Group group, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlUnset particular attribute for the member in the group. Core attributes can't be removed this way.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- remove attribute from this member
- group- remove attributes for this group
- attribute- attribute to remove
- Throws:
- WrongAttributeAssignmentException- if attribute isn't member-resource attribute or if it is core attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- MemberGroupMismatchException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, Member member, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset particular attribute for the member. Core attributes can't be removed this way.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- remove attribute from this member
- attribute- attribute to remove
- Throws:
- WrongAttributeAssignmentException- if attribute isn't member-resource attribute or if it is core attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, Facility facility, User user, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset particular attribute for the user on the facility. Core attributes can't be removed this way.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- remove attributes for this facility
- user- remove attribute from this user
- attribute- attribute to remove
- Throws:
- WrongAttributeAssignmentException- if attribute isn't user-facility attribute or if it is core attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, User user, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset particular attribute for the user. Core attributes can't be removed this way.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- remove attribute from this user
- attribute- attribute to remove
- Throws:
- WrongAttributeAssignmentException- if attribute isn't user-facility attribute or if it is core attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlUnset particular group-resource attribute- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- group-
- attribute-
- Throws:
- WrongAttributeAssignmentException
- GroupResourceMismatchException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributepublic void removeAttribute(PerunSession sess, UserExtSource ues, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset particular attribute for the user external source.- Specified by:
- removeAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- ues- remove attribute from this user external source
- attribute- attribute to remove
- Throws:
- WrongAttributeAssignmentException- if attribute isn't user external source attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, String key, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlUnset all attributes for the key (entityless) without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- key-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't entityless attribute or if it is core attribute
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, Facility facility, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlUnset all attributes for the facility without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't facility attribute or if it is core attribute
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, Host host, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlUnset all attributes for the host without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- host-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't host attribute or if it is core attribute
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, Vo vo, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlUnset all attributes for the vo without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- vo-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't vo attribute or if it is core attribute
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, Group group, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlUnset all attributes for the group without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- group-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't group attribute or if it is core attribute
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, Resource resource, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlUnset all attributes for the resource without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't resource attribute or if it is core attribute
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, Member member, Resource resource, AttributeDefinition attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlUnset all attributes for the member-resource without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- resource-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't member-resource attribute or if it is core attribute
- WrongReferenceAttributeValueException- if there is problem with removing value because of actual value of referenced attribute
- MemberResourceMismatchException
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, Member member, Group group, AttributeDefinition attribute) throws WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlUnset all attributes for the member-group without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- group-
- attribute-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- MemberGroupMismatchException
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, Member member, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlUnset all attributes for the member without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't member attribute or if it is core attribute
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, Facility facility, User user, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlUnset all attributes for the user-facility without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- user-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't user-facility attribute or if it is core attribute
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, User user, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerBlUnset all attributes for the user without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- user-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't user attribute or if it is core attribute
 
- 
removeAttributeWithoutCheckpublic boolean removeAttributeWithoutCheck(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) throws WrongAttributeAssignmentException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlUnset all attributes for the group-resource without check of value.- Specified by:
- removeAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- group-
- attribute-
- Returns:
- trueif attribute was changed (deleted) or- falseif attribute was not present in a first place
- Throws:
- WrongAttributeAssignmentException- if attribute isn't group-resource attribute or if it is core attribute
- GroupResourceMismatchException
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Member member, boolean workWithUserAttributes, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlUnset all non-empty attributes associated with the member and if workWithUserAttributes is true, unset all non-empty attributes associated with user, who is this member.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- remove attribute from this member
- workWithUserAttributes- true if I want to unset all attributes associated with user, who is the member too
- attributes- attribute to remove
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException- if attribute isn't member attribute or if it is core attribute
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Facility facility, List<? extends AttributeDefinition> attributesDefinition) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, WrongAttributeValueException Description copied from interface:AttributesManagerBlBatch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- WrongAttributeValueException
- See Also:
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<? extends AttributeDefinition> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlUnset the member, user, member-resource and user-facility attributes. If an attribute is core attribute then the attribute isn't unseted (It's skipped without any notification).- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility-
- resource- resource to set on
- user-
- member- member to set on
- attributes-
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource, user, member or user-facility attribute
- WrongReferenceAttributeValueException
- MemberResourceMismatchException
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<? extends AttributeDefinition> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupResourceMismatchException, MemberResourceMismatchException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlUnset the member, user, member-group, member-resource and user-facility attributes. If an attribute is core attribute then the attribute isn't unseted (It's skipped without any notification).- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility-
- resource- resource to set on
- group- group to set on
- user-
- member- member to set on
- attributes-
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource, user, member or user-facility attribute
- WrongReferenceAttributeValueException
- GroupResourceMismatchException
- MemberResourceMismatchException
- MemberGroupMismatchException
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Host host, List<? extends AttributeDefinition> attributesDefinition) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlBatch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- See Also:
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Vo vo, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- See Also:
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Group group, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- See Also:
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Resource resource, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- See Also:
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Member member, Resource resource, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlBatch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- 
removeAttributespublic void removeAttributes(PerunSession sess, Member member, Group group, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlBatch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- MemberGroupMismatchException
- See Also:
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Member member, Group group, List<? extends AttributeDefinition> attributes, boolean workWithUserAttributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberGroupMismatchException 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Member member, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- See Also:
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Facility facility, User user, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- See Also:
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, User user, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- See Also:
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Resource resource, Group group, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlBatch version of removeAttribute.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- GroupResourceMismatchException
- See Also:
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, Resource resource, Group group, List<? extends AttributeDefinition> attributes, boolean workWithGroupAttributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlUnset the group_resource attributes. If an attribute is core attribute, then the attribute isn't unseted (it's skipped without notification). If workWithGroupAttributes is true, unset also group attributes.Remove only attributes which are in list of attributes. PRIVILEGE: Remove attributes only when principal has access to write on them. - Specified by:
- removeAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- resource to set on
- group- group to set on
- attributes- attributes which will be used to removing
- workWithGroupAttributes- if true, remove also group attributes, if false, remove only group_resource attributes
- Throws:
- WrongAttributeAssignmentException- if attribute is not group-resource or group attribute
- WrongAttributeValueException- if the attribute value is illegal
- WrongReferenceAttributeValueException- if some reference attribute has illegal value
- GroupResourceMismatchException
 
- 
removeAttributespublic void removeAttributes(PerunSession sess, UserExtSource ues, List<? extends AttributeDefinition> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlBatch version of removeAttribute.- Specified by:
- removeAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- See Also:
 
- 
setAttributepublic void setAttribute(PerunSession sess, Facility facility, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the facility. Core attributes can't be set this way.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not facility attribute or if it is core attribute
- WrongReferenceAttributeValueException
 
- 
setAttributepublic void setAttribute(PerunSession sess, Vo vo, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the vo. Core attributes can't be set this way.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- vo- vo to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not vo attribute or if it is core attribute
- WrongReferenceAttributeValueException
 
- 
setAttributepublic void setAttribute(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the group. Core attributes can't be set this way.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- group to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not group attribute or if it is core attribute
- WrongReferenceAttributeValueException
 
- 
setAttributepublic void setAttribute(PerunSession sess, Resource resource, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the resource. Core attributes can't be set this way.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- resource to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not resource attribute or if it is core attribute
- WrongReferenceAttributeValueException
 
- 
setAttributepublic void setAttribute(PerunSession sess, Member member, Resource resource, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the resource and member combination. Core attributes can't be set this way.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- resource- resource to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource attribute or if it is core attribute
- WrongReferenceAttributeValueException
- MemberResourceMismatchException
 
- 
setAttributepublic void setAttribute(PerunSession sess, Member member, Group group, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the group and member combination. Core attributes can't be set this way.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- group- group to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource attribute or if it is core attribute
- WrongReferenceAttributeValueException
- MemberGroupMismatchException
 
- 
setAttributepublic void setAttribute(PerunSession sess, Member member, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the member. Core attributes can't be set this way.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource attribute or if it is core attribute
- WrongReferenceAttributeValueException
 
- 
setAttributepublic void setAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attribute associated with the facility and user combination. Core attributes can't be set this way.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility to set on
- user- user to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not user-facility attribute
- WrongReferenceAttributeValueException
 
- 
setAttributepublic void setAttribute(PerunSession sess, User user, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attribute associated with the user. Core attributes can't be set this way.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- user to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not user-facility attribute
- WrongReferenceAttributeValueException
 
- 
setAttributepublic void setAttribute(PerunSession sess, Host host, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attribute associated with the host. Core attributes can't be set this way.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- host- host to set attributes for
- attribute- attribute to be set
- Throws:
- WrongAttributeAssignmentException- if attribute is not host attribute
- WrongAttributeValueException- if the attribute value is illegal
- WrongReferenceAttributeValueException
 
- 
setAttributepublic void setAttribute(PerunSession sess, Resource resource, Group group, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlStore the group-resource attribute- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- group-
- attribute-
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- GroupResourceMismatchException
 
- 
setAttributepublic void setAttribute(PerunSession sess, String key, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStores entityless attribute (associated with string key).- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- key- store the attribute for this key
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not entityless attribute
- WrongReferenceAttributeValueException
 
- 
setAttributepublic void setAttribute(PerunSession sess, UserExtSource ues, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attribute associated with the user external source.- Specified by:
- setAttributein interface- AttributesManagerBl
- Parameters:
- sess- perun session
- ues- user external source to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not user external source attribute
- WrongReferenceAttributeValueException
 
- 
setAttributeActionCriticalitypublic void setAttributeActionCriticality(PerunSession sess, AttributeDefinition attr, AttributeAction action, boolean critical, boolean global) throws RelationExistsException, RelationNotExistsException Description copied from interface:AttributesManagerBlMarks the action on attribute as critical, which may require additional authentication of user performing that action on attribute.- Specified by:
- setAttributeActionCriticalityin interface- AttributesManagerBl
- 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
 
- 
setAttributeInNestedTransactionpublic void setAttributeInNestedTransaction(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the group. Core attributes can't be set this way.This method creates nested transaction to prevent storing value to DB if it throws any exception. - Specified by:
- setAttributeInNestedTransactionin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- group to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not group attribute or if it is core attribute
- WrongReferenceAttributeValueException
 
- 
setAttributeInNestedTransactionpublic void setAttributeInNestedTransaction(PerunSession sess, Member member, Group group, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the member-group relationship. Core attributes can't be set this way.This method creates nested transaction to prevent storing value to DB if it throws any exception. - Specified by:
- setAttributeInNestedTransactionin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- group- group to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-group attribute or if it is core attribute
- WrongReferenceAttributeValueException
- AttributeNotExistsException
- MemberGroupMismatchException
 
- 
setAttributeInNestedTransactionpublic void setAttributeInNestedTransaction(PerunSession sess, Member member, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the member. Core attributes can't be set this way.This method creates nested transaction to prevent storing value to DB if it throws any exception. - Specified by:
- setAttributeInNestedTransactionin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource attribute or if it is core attribute
- WrongReferenceAttributeValueException
 
- 
setAttributeInNestedTransactionpublic void setAttributeInNestedTransaction(PerunSession sess, User user, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attribute associated with the user. Core attributes can't be set this way.This method creates nested transaction to prevent storing value to DB if it throws any exception. - Specified by:
- setAttributeInNestedTransactionin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- user to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not user-facility attribute
- WrongReferenceAttributeValueException
 
- 
setAttributeInNestedTransactionpublic void setAttributeInNestedTransaction(PerunSession sess, UserExtSource userExtSource, Attribute attribute) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the particular attribute associated with the user external source. Core attributes can't be set this way.This method creates nested transaction to prevent storing value to DB if it throws any exception. - Specified by:
- setAttributeInNestedTransactionin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- userExtSource- user external source to set on
- attribute- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not user external source attribute
- WrongReferenceAttributeValueException
 
- 
setAttributePolicyCollectionspublic void setAttributePolicyCollections(PerunSession sess, List<AttributePolicyCollection> policyCollections) Description copied from interface:AttributesManagerBlDeletes old attribute policy collections and sets all new attribute policy collections.- Specified by:
- setAttributePolicyCollectionsin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- policyCollections- list of policy collections to set
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, Facility facility, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlJust store the particular attribute associated with the facility, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility to set on
- attribute- attribute to set
- Returns:
- true, if attribute was set in DB
- Throws:
- WrongAttributeAssignmentException- if attribute is not resource attribute or if it is core attribute
- WrongAttributeValueException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, Vo vo, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlJust store the particular attribute associated with the vo, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- vo-
- attribute-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, Resource resource, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlJust store the particular attribute associated with the resource, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- resource to set on
- attribute- attribute to set
- Returns:
- true, if attribute was set in DB
- Throws:
- WrongAttributeAssignmentException- if attribute is not resource attribute or if it is core attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, Group group, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlJust store the particular attribute associated with the group, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group-
- attribute-
- Returns:
- true, if attribute was set in DB
- Throws:
- WrongAttributeAssignmentException- if attribute is not group attribute or if it is core attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, Facility facility, User user, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlJust store the particular attribute associated with the user-facility, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- user-
- attribute-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, Member member, Resource resource, Attribute attribute, boolean workWithUserAttributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlJust store the particular attribute associated with the member-resource, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- resource-
- attribute-
- workWithUserAttributes-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- MemberResourceMismatchException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, Member member, Group group, Attribute attribute, boolean workWithUserAttributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlJust store the particular attribute associated with the member-group, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- group-
- attribute-
- workWithUserAttributes-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- MemberGroupMismatchException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, Member member, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlJust store the particular attribute associated with the member, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- member-
- attribute-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, User user, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlJust store the attribute associated with the user, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- user to set on
- attribute- attribute to set
- Returns:
- true, if attribute was set in DB
- Throws:
- WrongAttributeAssignmentException- if attribute is not user-facility attribute
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, Host host, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlJust store the particular attribute associated with the host, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- host-
- attribute-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, Resource resource, Group group, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlJust store the group-resource attribute, do not preform any value check.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- group-
- attribute-
- Returns:
- true, if attribute was set in DB
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
- WrongReferenceAttributeValueException- Can be raised while storing virtual attribute if another attribute which is required for set virtual attribute have wrong value
- GroupResourceMismatchException
 
- 
setAttributeWithoutCheckpublic boolean setAttributeWithoutCheck(PerunSession sess, String key, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerBlJust store the particular attribute associated with the entityless, doesn't preform any value check. Core attributes can't be set this way.- Specified by:
- setAttributeWithoutCheckin interface- AttributesManagerBl
- Parameters:
- sess-
- key-
- attribute-
- Returns:
- Throws:
- WrongAttributeAssignmentException
- WrongAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Facility facility, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attributes associated with the facility. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility to set on
- attributes- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not facility attribute
- WrongReferenceAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Vo vo, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attributes associated with the vo. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- vo- vo to set on
- attributes- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not vo attribute
- WrongReferenceAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Group group, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attributes associated with the group. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- group- group to set on
- attributes- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not group attribute
- WrongReferenceAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Resource resource, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attributes associated with the resource. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- resource- resource to set on
- attributes- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeValueException
- WrongAttributeAssignmentException- if attribute is not resource attribute
- WrongReferenceAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlStore the attributes associated with the resource and member combination. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- resource- resource to set on
- attributes- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource attribute
- WrongReferenceAttributeValueException
- MemberResourceMismatchException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlStore the attributes associated with the group and member combination. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- group- group to set on
- attributes- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-group attribute
- WrongReferenceAttributeValueException
- MemberGroupMismatchException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlStore the attributes associated with the resource and member combination. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification). If workWithUserAttributes is true, the method stores also the attributes associated with user and member.- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- group- group to set on
- attributes- attribute to set
- workWithUserAttributes- method can process also user and member attributes (user is automatically get from member)
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource attribute
- WrongReferenceAttributeValueException
- MemberGroupMismatchException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Member member, List<Attribute> attributes, boolean workWithUserAttributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attributes associated with member and user (which we get from this member) if workWithUserAttributes is true. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- attributes- attribute to set
- workWithUserAttributes- true/false If true, we can use user attributes (get from this member) too
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member attribute or with workWithUserAttributes=true, if its not member or user attribute.
- WrongReferenceAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlStore the attributes associated with the resource and member combination. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification). If workWithUserAttributes is true, the method stores also the attributes associated with user, user-facility and member.- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- resource- resource to set on
- attributes- attribute to set
- workWithUserAttributes- method can process also user, user-facility and member attributes (user is automatically get from member a facility is get from resource)
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource attribute
- WrongReferenceAttributeValueException
- MemberResourceMismatchException- !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
 
- 
setAttributespublic void setAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlStore the member, user, member-resource and user-facility attributes. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility-
- resource-
- user-
- member-
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource attribute
- WrongReferenceAttributeValueException
- MemberResourceMismatchException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupResourceMismatchException, MemberResourceMismatchException, MemberGroupMismatchException Description copied from interface:AttributesManagerBlStore the member, user, member-group, member-resource and user-facility attributes. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility-
- resource-
- group-
- user-
- member-
- attributes-
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource attribute
- WrongReferenceAttributeValueException
- GroupResourceMismatchException
- MemberResourceMismatchException
- MemberGroupMismatchException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Member member, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attributes associated with the resource. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- member- member to set on
- attributes- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not member-resource attribute
- WrongReferenceAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attributes associated with the facility and user combination. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- facility- facility to set on
- user- user to set on
- attributes- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not user-facility attribute
- WrongReferenceAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, User user, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attributes associated with the user. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- user- user to set on
- attributes- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not user-facility attribute
- WrongReferenceAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Host host, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attributes associated with the host. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- host- host to set attributes for
- attributes- attributes to be set
- Throws:
- WrongAttributeAssignmentException- if attribute is not host attribute
- WrongAttributeValueException- if the attribute value is illegal
- WrongReferenceAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerBlStores the group-resource attributes.- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- resource-
- group-
- attributes-
- Throws:
- WrongAttributeValueException
- WrongAttributeAssignmentException
- GroupResourceMismatchException
- WrongReferenceAttributeValueException
 
- 
setAttributespublic void setAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupResourceMismatchException - Specified by:
- setAttributesin interface- AttributesManagerBl
- Throws:
- WrongAttributeValueException
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- GroupResourceMismatchException
 
- 
setAttributespublic void setAttributes(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerBlStore the attributes associated with the user external source. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).- Specified by:
- setAttributesin interface- AttributesManagerBl
- Parameters:
- sess- perun session
- ues- user external source to set on
- attributes- attribute to set
- Throws:
- WrongAttributeValueException- if the attribute value is illegal
- WrongAttributeAssignmentException- if attribute is not user external source attribute
- WrongReferenceAttributeValueException
 
- 
setPerunBl
- 
setRequiredAttributespublic void setRequiredAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, WrongAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlTake list of required attributes and set those which are empty and can be filled, then check them all.Important: this method DO NOT set non-empty attributes in list, just refresh their values and check them Procedure: 1] Get all attrs from arrayList (they should be required attributes) 2] Fill empty attributes and store those which were really filled. (value changed) 3] Set filled attributes. 4] Refresh value in all attributes (not only in virtual ones - because of possible change by changeAttributeHook in other filledAttributes) 5] Check all attributes and their dependencies. - Specified by:
- setRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- resource-
- user-
- member-
- attributes-
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- AttributeNotExistsException
- WrongAttributeValueException
- MemberResourceMismatchException
 
- 
setRequiredAttributespublic void setRequiredAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes, boolean forceAttributesChecks) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, WrongAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlTake list of required attributes and set those which are empty and can be filled, then check them all.Important: this method DO NOT set non-empty attributes in list, just refresh their values and check them Procedure: 1] Get all attrs from arrayList (they should be required attributes) 2] Fill empty attributes and store those which were really filled. (value changed) 3] Set filled attributes. 4] Refresh value in all attributes (not only in virtual ones - because of possible change by changeAttributeHook in other filledAttributes) 5] Check all attributes and their dependencies. - Specified by:
- setRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- resource-
- user-
- member-
- attributes-
- forceAttributesChecks- if true, all required attributes for given resource and user will be semantically checked, no matter if the user has truly access to the given resource
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- AttributeNotExistsException
- WrongAttributeValueException
- MemberResourceMismatchException
 
- 
setRequiredAttributespublic void setRequiredAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, boolean forceAttributesChecks) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, WrongAttributeValueException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet and set required attribute for member, resource, user and facility.Procedure: 1] Get all member, member-resource, user, user-facility required attributes for member and resource. 2] Fill attributes and store those which were really filled. (value changed) 3] Set filled attributes. 4] Refresh value in all virtual attributes. 5] Check all attributes and their dependencies. - Specified by:
- setRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- resource-
- user-
- member-
- forceAttributesChecks- if true, all required attributes for given resource and user will be semantically checked, no matter if the user has truly access to the given resource
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- WrongAttributeValueException
- AttributeNotExistsException
- MemberResourceMismatchException
 
- 
setRequiredAttributespublic void setRequiredAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, WrongAttributeValueException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet and set required attribute for member, resource, user and facility.Procedure: 1] Get all member, member-resource, user, user-facility required attributes for member and resource. 2] Fill attributes and store those which were really filled. (value changed) 3] Set filled attributes. 4] Refresh value in all virtual attributes. 5] Check all attributes and their dependencies. - Specified by:
- setRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- facility-
- resource-
- user-
- member-
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- WrongAttributeValueException
- AttributeNotExistsException
- MemberResourceMismatchException
 
- 
setRequiredAttributespublic void setRequiredAttributes(PerunSession sess, Service service, Facility facility, Resource resource, User user, Member member) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, WrongAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet and set required attribute for member, resource, user, facility and specific service.Procedure: 1] Get all member, member-resource, user, user-facility required attributes for member, resource and specific service. 2] Fill attributes and store those which were really filled. (value changed) 3] Set filled attributes. 4] Refresh value in all virtual attributes. 5] Check all attributes and their dependencies. - Specified by:
- setRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- service-
- facility-
- resource-
- user-
- member-
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- AttributeNotExistsException
- WrongAttributeValueException
- MemberResourceMismatchException
 
- 
setRequiredAttributespublic void setRequiredAttributes(PerunSession sess, Service service, Facility facility, Resource resource, User user, Member member, boolean forceAttributesChecks) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, WrongAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet and set required attribute for member, resource, user, facility and specific service.Procedure: 1] Get all member, member-resource, user, user-facility required attributes for member, resource and specific service. 2] Fill attributes and store those which were really filled. (value changed) 3] Set filled attributes. 4] Refresh value in all virtual attributes. 5] Check all attributes and their dependencies. - Specified by:
- setRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess-
- service-
- facility-
- resource-
- user-
- member-
- forceAttributesChecks- if true, all required attributes for given resource and user will be semantically checked, no matter if the user has truly access to the given resource
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- AttributeNotExistsException
- WrongAttributeValueException
- MemberResourceMismatchException
 
- 
setRequiredAttributespublic void setRequiredAttributes(PerunSession sess, List<Service> services, Facility facility, Resource resource, User user, Member member, boolean forceAttributesChecks) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, WrongAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerBlGet all required attributes for user, user-facility, member and member-resource attributes and set them.- Specified by:
- setRequiredAttributesin interface- AttributesManagerBl
- Parameters:
- sess- session
- services- services
- facility- facility
- resource- resource
- user- user
- member- member
- forceAttributesChecks- if true, all required attributes for given resource and user will be semantically checked, no matter if the user has truly access to the given resource
- Throws:
- WrongAttributeAssignmentException
- WrongReferenceAttributeValueException
- AttributeNotExistsException
- WrongAttributeValueException
- MemberResourceMismatchException
 
- 
setWritableTrueDescription copied from interface:AttributesManagerBlSet all Attributes in list to "writable = true".- Specified by:
- setWritableTruein interface- AttributesManagerBl
- Parameters:
- sess-
- attributes-
- Returns:
- list of attributes
 
- 
stringToAttributeValueDescription copied from interface:AttributesManagerBlConverts string into the Object defined by type.- Specified by:
- stringToAttributeValuein interface- AttributesManagerBl
- Parameters:
- value-
- type-
- Returns:
 
- 
updateAttributeDefinitionpublic AttributeDefinition updateAttributeDefinition(PerunSession perunSession, AttributeDefinition attributeDefinition) Description copied from interface:AttributesManagerBlUpdates AttributeDefinition.- Specified by:
- updateAttributeDefinitionin interface- AttributesManagerBl
- Parameters:
- perunSession-
- attributeDefinition-
- Returns:
- returns updated attributeDefinition
 
 
-