Class AttributesManagerEntry
- All Implemented Interfaces:
AttributesManager
- Author:
- Slavek Licehammer glory@ics.muni.cz
-
Field Summary
Fields inherited from interface cz.metacentrum.perun.core.api.AttributesManager
ATTRIBUTES_REGEXP, ENTITY_TYPES, LOGIN_NAMESPACE, NS_ENTITYLESS_ATTR, NS_ENTITYLESS_ATTR_DEF, NS_ENTITYLESS_ATTR_OPT, NS_FACILITY_ATTR, NS_FACILITY_ATTR_CORE, NS_FACILITY_ATTR_DEF, NS_FACILITY_ATTR_OPT, NS_FACILITY_ATTR_VIRT, NS_GROUP_ATTR, NS_GROUP_ATTR_CORE, NS_GROUP_ATTR_DEF, NS_GROUP_ATTR_OPT, NS_GROUP_ATTR_VIRT, NS_GROUP_RESOURCE_ATTR, NS_GROUP_RESOURCE_ATTR_DEF, NS_GROUP_RESOURCE_ATTR_OPT, NS_GROUP_RESOURCE_ATTR_VIRT, NS_HOST_ATTR, NS_HOST_ATTR_CORE, NS_HOST_ATTR_DEF, NS_HOST_ATTR_OPT, NS_HOST_ATTR_VIRT, NS_MEMBER_ATTR, NS_MEMBER_ATTR_CORE, NS_MEMBER_ATTR_DEF, NS_MEMBER_ATTR_OPT, NS_MEMBER_ATTR_VIRT, NS_MEMBER_GROUP_ATTR, NS_MEMBER_GROUP_ATTR_DEF, NS_MEMBER_GROUP_ATTR_OPT, NS_MEMBER_GROUP_ATTR_VIRT, NS_MEMBER_RESOURCE_ATTR, NS_MEMBER_RESOURCE_ATTR_DEF, NS_MEMBER_RESOURCE_ATTR_OPT, NS_MEMBER_RESOURCE_ATTR_VIRT, NS_RESOURCE_ATTR, NS_RESOURCE_ATTR_CORE, NS_RESOURCE_ATTR_DEF, NS_RESOURCE_ATTR_OPT, NS_RESOURCE_ATTR_VIRT, NS_UES_ATTR, NS_UES_ATTR_CORE, NS_UES_ATTR_DEF, NS_UES_ATTR_OPT, NS_UES_ATTR_VIRT, NS_USER_ATTR, NS_USER_ATTR_CORE, NS_USER_ATTR_DEF, NS_USER_ATTR_OPT, NS_USER_ATTR_VIRT, NS_USER_FACILITY_ATTR, NS_USER_FACILITY_ATTR_DEF, NS_USER_FACILITY_ATTR_OPT, NS_USER_FACILITY_ATTR_VIRT, NS_VO_ATTR, NS_VO_ATTR_CORE, NS_VO_ATTR_DEF, NS_VO_ATTR_OPT, NS_VO_ATTR_VIRT, ORACLE_ARRAY_OF_NUMBERS, ORACLE_ARRAY_OF_STRINGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAttributeSemantics(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) Checks if value of this group attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Host host, Attribute attribute) Checks if value of this host attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Member member, Attribute attribute) Check if value of this member attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Member member, Group group, Attribute attribute) Check if value of this member-group attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Member member, Resource resource, Attribute attribute) Check if value of this member-resource attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Resource resource, Attribute attribute) Check if value of this resource attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Resource resource, Group group, Attribute attribute) Checks if value of this group-resource attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, UserExtSource ues, Attribute attribute) Checks if value of this user external source attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, User user, Attribute attribute) Check if value of this user attribute has valid semantics.voidcheckAttributeSemantics(PerunSession sess, Vo vo, Attribute attribute) Check if value of this vo attribute has valid semantics.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) PRIVILEGE: Check attributes only when principal has access to write on themvoidcheckAttributesSemantics(PerunSession sess, Facility facility, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSemantics(PerunSession sess, Host host, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSemantics(PerunSession sess, Member member, Group group, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSemantics(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSemantics(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSemantics(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSemantics(PerunSession sess, Member member, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on themvoidcheckAttributesSemantics(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSemantics(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttribute) voidcheckAttributesSemantics(PerunSession sess, Resource resource, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSemantics(PerunSession sess, UserExtSource ues, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSemantics(PerunSession sess, User user, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSemantics(PerunSession sess, Vo vo, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.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) PRIVILEGE: Check attributes only when principal has access to write on themvoidcheckAttributesSyntax(PerunSession sess, Facility facility, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSyntax(PerunSession sess, Host host, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSyntax(PerunSession sess, Member member, Group group, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSyntax(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSyntax(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSyntax(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSyntax(PerunSession sess, Member member, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on themvoidcheckAttributesSyntax(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSyntax(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttribute) voidcheckAttributesSyntax(PerunSession sess, Resource resource, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSyntax(PerunSession sess, UserExtSource ues, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSyntax(PerunSession sess, User user, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributesSyntax(PerunSession sess, Vo vo, List<Attribute> attributes) PRIVILEGE: Check attributes only when principal has access to write on them.voidcheckAttributeSyntax(PerunSession sess, Facility facility, Attribute attribute) Check if value of this facility attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Facility facility, User user, Attribute attribute) Check if value of this user-facility attribute has valid syntax.voidcheckAttributeSyntax(PerunSession sess, Group group, Attribute attribute) Checks if value of this group attribute has valid syntaxvoidcheckAttributeSyntax(PerunSession sess, Host host, Attribute attribute) Checks if value of this host attribute has valid syntaxvoidcheckAttributeSyntax(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) Checks if value of this group-resource attribute has valid syntaxvoidcheckAttributeSyntax(PerunSession sess, UserExtSource ues, Attribute attribute) Checks if value of this user external source attribute has valid syntaxvoidcheckAttributeSyntax(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.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.voidconvertAttributeToNonunique(PerunSession session, int attrId) Converts attribute to non-unique.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 namespacevoiddeleteAttribute(PerunSession sess, AttributeDefinition attribute) Deletes the attribute.voiddeleteAttribute(PerunSession sess, AttributeDefinition attributeDefinition, boolean force) Deletes the attribute.voiddoTheMagic(PerunSession sess, Member member) PRIVILEGE: Only for PerunAdmin.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.fillAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) This method tries to fill value of the user-facility attribute.fillAttribute(PerunSession sess, Group group, Attribute attribute) This method tries to fill group attribute.fillAttribute(PerunSession sess, Host host, Attribute attribute) This method tries to fill host attribute.fillAttribute(PerunSession sess, Member member, Attribute attribute) This method tries to fill value of the member attribute.fillAttribute(PerunSession sess, Member member, Group group, Attribute attribute) This method tries to fill value of the member-group attribute.fillAttribute(PerunSession sess, Member member, Resource resource, Attribute attribute) This method tries to fill value of the member-resource attribute.fillAttribute(PerunSession sess, Resource resource, Attribute attribute) This method tries to fill a value of the resource attribute.fillAttribute(PerunSession sess, Resource resource, Group group, Attribute attribute) This method tries to fill group-resource attribute.fillAttribute(PerunSession sess, UserExtSource ues, Attribute attribute) This method tries to fill value of the user external source attribute.fillAttribute(PerunSession sess, User user, Attribute attribute) This method tries to fill value of the user attribute.fillAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) This method tries to fill value of the user, member, member-resource and user-facility attributes.fillAttributes(PerunSession sess, Facility facility, User user, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, Group group, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, Host host, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, Member member, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttributes) fillAttributes(PerunSession sess, Resource resource, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, UserExtSource ues, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.fillAttributes(PerunSession sess, User user, List<Attribute> attributes) PRIVILEGE: Fill attributes only when principal has access to write on them.getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Group group, String startPartOfName) Get all non-empty attributes associated with the group starts with name startPartOfName.getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Resource resource, String startPartOfName) Get all non-empty attributes associated with the resource starts with name startPartOfName.getAllNamespaces(PerunSession sess) Returns list of all possible namespaces.getAttribute(PerunSession sess, Facility facility, User user, String attributeName) Get particular attribute for the user on this facility.getAttribute(PerunSession sess, Facility facility, String attributeName) Get particular attribute for the facility.getAttribute(PerunSession sess, Group group, String attributeName) Get particular attribute for the group.getAttribute(PerunSession sess, Host host, String attributeName) Get particular attribute for the hostgetAttribute(PerunSession sess, Member member, Group group, String attributeName) Get particular attribute for the member in this group.getAttribute(PerunSession sess, Member member, Resource resource, String attributeName) Get particular attribute for the member on this resource.getAttribute(PerunSession sess, Member member, String attributeName) Get particular attribute for the member.getAttribute(PerunSession sess, Resource resource, Group group, String attributeName) Get particular group attribute on resourcegetAttribute(PerunSession sess, Resource resource, String attributeName) Get particular attribute for the resource.getAttribute(PerunSession sess, UserExtSource ues, String attributeName) Get particular attribute for the user external source.getAttribute(PerunSession sess, User user, String attributeName) Get particular attribute for the user.getAttribute(PerunSession sess, Vo vo, String attributeName) Get particular attribute for the vo.getAttribute(PerunSession sess, String key, String attributeName) Get particular entityless attributegetAttributeById(PerunSession sess, Facility facility, int id) Get particular attribute for the facility.getAttributeById(PerunSession sess, Facility facility, User user, int id) Get particular attribute for the user on this facility.getAttributeById(PerunSession sess, Group group, int id) Get particular attribute for groupgetAttributeById(PerunSession sess, Host host, int id) Get particular attribute for the hostgetAttributeById(PerunSession sess, Member member, int id) Get particular attribute for the member.getAttributeById(PerunSession sess, Member member, Group group, int id) Get particular attribute for the member in this group.getAttributeById(PerunSession sess, Member member, Resource resource, int id) Get particular attribute for the member on this resource.getAttributeById(PerunSession sess, Resource resource, int id) Get particular attribute for the resource.getAttributeById(PerunSession sess, Resource resource, Group group, int id) Get particular group attribute on this resourcegetAttributeById(PerunSession sess, UserExtSource ues, int id) Get particular attribute for user external sourcegetAttributeById(PerunSession sess, User user, int id) Get particular attribute for the user.getAttributeById(PerunSession sess, Vo vo, int id) Get particular attribute for the vo.getAttributeDefinition(PerunSession sess, String attributeName) Get attribute definition (attribute without defined value).getAttributeDefinitionById(PerunSession sess, int id) Get attribute definition (attribute without defined value).getAttributePolicyCollections(PerunSession sess, int attributeId) Gets attribute policy collections for an attribute definition with given id.getAttributeRules(PerunSession sess, int attributeId) Gets attribute rules containing policy collections and critical actions for an attribute definition with given idgetAttributes(PerunSession sess, Facility facility) Get all non-empty attributes associated with the facility.getAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member) Get all non-empty member, user, member-resource and user-facility attributes.getAttributes(PerunSession sess, Facility facility, User user) Get all non-empty attributes associated with the user on the facility.getAttributes(PerunSession sess, Facility facility, List<String> attrNames) Get all attributes associated with the facility which have name in list attrNames (empty too).getAttributes(PerunSession sess, Group group) Get all non-empty attributes associated with the group.getAttributes(PerunSession sess, Group group, List<String> attrNames) Get all attributes associated with the group which have name in list attrNames (empty too).getAttributes(PerunSession sess, Host host) Get all non-empty attributes associated with the hostgetAttributes(PerunSession sess, Host host, List<String> attrNames) Get all attributes associated with the host which have name in list attrNames (empty too).getAttributes(PerunSession sess, Member member) Get all non-empty attributes associated with the member.getAttributes(PerunSession sess, Member member, boolean workWithUserAttributes) Get all non-empty attributes associated with the member and if workWithUserAttributes is true, get all non-empty attributes associated with user, who is this member.getAttributes(PerunSession sess, Member member, Group group) Get all non-empty attributes associated with the member in the group.getAttributes(PerunSession sess, Member member, Group group, List<String> attrNames) Get all attributes (empty and virtual too)associated with the member in the group which have name in list attrNames.getAttributes(PerunSession sess, Member member, Group group, List<String> attrNames, boolean workWithUserAttributes) Get all attributes associated with the member in the group which have name in list attrNames (empty too).getAttributes(PerunSession sess, Member member, Resource resource) Get all non-empty attributes associated with the member on the resource.getAttributes(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) Gets all non-empty attributes associated with the member on the resource and if workWithUserAttributes is true, gets also all non-empty user, user-facility and member attributes.getAttributes(PerunSession sess, Member member, Resource resource, List<String> attrNames, boolean workWithUserAttributes) Gets selected non-empty attributes associated with the member and the resource.getAttributes(PerunSession sess, Member member, List<String> attrNames) Get all attributes associated with the member which have name in list attrNames (empty too).getAttributes(PerunSession sess, Member member, List<String> attrNames, boolean workWithUserAttributes) Get all attributes associated with the member which have name in list attrNames (empty too) Virtual attributes too.getAttributes(PerunSession sess, Resource resource) Get all non-empty attributes associated with the resource.getAttributes(PerunSession sess, Resource resource, Group group) Get all non-empty attributes associated with the group on resourcegetAttributes(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) Get all non-empty attributes associated with the group and resource.getAttributes(PerunSession sess, Resource resource, Group group, Member member, List<String> attrNames) Get all attributes by the list of attrNames if they are in one of these namespaces: - member - group - member-group - resource - member-resource - group-resource - user (get from member object) - facility (get from resource object) - user-facilitygetAttributes(PerunSession sess, Resource resource, Group group, List<String> attrNames, boolean workWithGroupAttributes) Get all attributes associated with the group and the resource which have their name in list attrNames (empty too).getAttributes(PerunSession sess, Resource resource, List<String> attrNames) Get all attributes associated with the resource which have name in list attrNames (empty too).getAttributes(PerunSession sess, User user) Get all non-empty attributes associated with the user.getAttributes(PerunSession sess, UserExtSource ues) Get all non-empty attributes associated with the UserExtSource.getAttributes(PerunSession sess, UserExtSource ues, List<String> attrNames) Get all attributes associated with the userExtSource which have name in list attrNames (empty too).getAttributes(PerunSession sess, User user, List<String> attrNames) Get all attributes associated with the user which have name in list attrNames (empty too).getAttributes(PerunSession sess, Vo vo) Get all non-empty attributes associated with the vo.getAttributes(PerunSession sess, Vo vo, List<String> attrNames) Get all attributes associated with the vo which have name in list attrNames (empty too).getAttributes(PerunSession sess, String key) Get all entityless attributes with subject equaled String keygetAttributesByAttributeDefinition(PerunSession sess, AttributeDefinition attributeDefinition) Returns all attributes with not-null value which fits the attributeDefinition.Get all attributes definition (attribute without defined value).getAttributesDefinition(PerunSession sess, List<String> listOfAttributesNames) From listOfAttributesNames get list of attributeDefinitionsgetAttributesDefinitionByNamespace(PerunSession sess, String namespace) Get attributes definition (attribute without defined value) with specified namespace.getAttributesDefinitionWithRights(PerunSession sess, List<PerunBean> entities) Get all (for entities) attributeDefinitions which user has right to READ them and fill attribute writable (if user has also right to WRITE them).Gets the attributesManagerBl for this instance.getEntitylessAttributes(PerunSession sess, String attrName) Get all entityless attributes with attributeNamegetEntitylessAttributesWithKeys(PerunSession sess, String attrName) Get entityless attributes mapped by their keys.getEntitylessAttributesWithKeys(PerunSession sess, String attrName, List<String> keys) Get entityless attributes mapped by their keys.getEntitylessKeys(PerunSession sess, AttributeDefinition attributeDefinition) Returns list of Keys which fits the attributeDefinition.getFriendlyNameFromAttributeName(String attributeName) Gets the friendly name from the attribute name.Returns list of definitions of IdP attributes that are filled to fedInfogetLogins(PerunSession sess, User user) Get all attributes with user's logins.getModulesDependenciesGraph(PerunSession session, GraphTextFormat format) Generates graph describing attribute modules dependencies.getModulesDependenciesGraph(PerunSession session, GraphTextFormat format, String attributeName) Generates graph describing dependencies for given AttributeDefinition.getNamespaceFromAttributeName(String attributeName) Gets the namespace from the attribute name.getRequiredAttributes(PerunSession sess, Facility facility) Get facility attributes which are required by all services which are related to this facility.getRequiredAttributes(PerunSession sess, Facility facility, User user) Get user-facility attributes which are required by services which are related to this user-facility.getRequiredAttributes(PerunSession sess, Member member, boolean workWithUserAttributes) Get member attributes which are required by services which are relater to this member.getRequiredAttributes(PerunSession sess, Member member, Group group, boolean workWithUserAttributes) Get member, member-group attributes which are required by services which are relater to this member.getRequiredAttributes(PerunSession sess, Member member, Resource resource) Get member-resource attributes which are required by services which are relater to this member-resource.getRequiredAttributes(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) If workWithUserAttribute is false => Get member-resource attributes which are required by services which are relater to this member-resource.getRequiredAttributes(PerunSession sess, Resource resource) Get resource attributes which are required by services which is relatod to this resource.getRequiredAttributes(PerunSession sess, Resource resource, Service service, List<Member> members) Get member attributes which are required by service for each member in list of members.getRequiredAttributes(PerunSession sess, Service service, Facility facility) Get facility attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Facility facility, List<User> users) Get user-facility attributes which are required by the service for each user in list of users.getRequiredAttributes(PerunSession sess, Service service, Group group) Get group required attributes for the servicegetRequiredAttributes(PerunSession sess, Service service, Host host) Get host required attributes for the servicegetRequiredAttributes(PerunSession sess, Service service, Member member) Get member attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Member member, Group group) Get member-group attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Member member, Group group, boolean workWithUserAttributes) PRIVILEGE: Get only those required attributes principal has access to.getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource) Get member-resource attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource, boolean workWithUserAttributes) PRIVILEGE: Get only those required attributes principal has access to.getRequiredAttributes(PerunSession sess, Service service, Resource resource) Get resource attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group) Get group-resource attributes required for the service.getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group, boolean workWithGroupAttributes) Get group-resource attributes required for the service. !!getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group, Member member, boolean workWithUserAttributes) Get member, member-resource and member-group attributes required by the specified service. 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, Resource resource, List<Member> members, boolean workWithUserAttributes) Get member-resource, member, user-facility and user attributes which are required by service for each member in list of members.getRequiredAttributes(PerunSession sess, Service service, Vo vo) Get vo attributes which are required by the service.getRequiredAttributes(PerunSession sess, Service service, List<User> users) Get user attributes which are required by the service for each user in list of users.getRequiredAttributes(PerunSession sess, User user) Get user attributes which are required by services which are relater to this user.getRequiredAttributes(PerunSession sess, List<Service> services, Facility facility) Get facility attributes which are required by the services.getRequiredAttributes(PerunSession sess, List<Service> services, Resource resource) Get resource attributes which are required by the services.getRequiredAttributesDefinition(PerunSession sess, Service service) Get all attributes which are required by service.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, Resource resource, User user, Member member) Get member, user, member-resource and user-facility attributes which are required by services which are defined on "resourceToGetServicesFrom" resource.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, User user) Get user-facility attributes which are required by services which are defined on specified resourcegetResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Group group) Get group attributes which are required by services defined on specified resourcegetResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Host host) Get host attributes which are required by services defined on specified resourcegetResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member) Get member attributes which are required by services defined on specified resourcegetResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group) Get member-group attributes which are required by services defined on specified resource Services are known from the resourceToGetServicesFrom.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group, boolean workWithUserAttributes) Get member-group attributes which are required by services defined on specified resource and if workWithUserAttributes is true also user and member attributes.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource) Get member-resource attributes which are required by services which are defined on "resourceToGetServicesFrom" resource.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource, boolean workWithUserAttributes) Get member-resource attributes which are required by services and if workWithUserAttributes is true also user, user-facility and member attributes.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group) Get group-resource attributes which are required by services defined on specified resourcegetResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group, boolean workWithGroupAttributes) Get group-resource attributes which are required by services defined on specified resource Get also group attributes, if workWithGroupAttributes is true.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group, Member member, boolean workWithUserAttributes) Get member-group and member-resource attributes required by the services specified on resource Get also user, member, user-facility attributes, if workWithUserAttributes is true.getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, User user) Get user attributes which are required by services defined on specified resourcebooleanisCoreAttribute(PerunSession sess, AttributeDefinition attribute) Determine if attribute is core attribute.booleanisCoreManagedAttribute(PerunSession sess, AttributeDefinition attribute) Determine if attribute is core-managed attribute.booleanisFromNamespace(PerunSession sess, AttributeDefinition attribute, String namespace) Determine if attribute is from specified namespace.booleanisOptAttribute(PerunSession sess, AttributeDefinition attribute) Determine if attribute is optional (opt) attribute.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 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 hostvoidremoveAllAttributes(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) Remove all attributes for group on resourcevoidremoveAllAttributes(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.voidremoveAttribute(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.voidremoveAttribute(PerunSession sess, Resource resource, AttributeDefinition attribute) Unset particular attribute for the resource.voidremoveAttribute(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) Unset particular group attribute on the resourcevoidremoveAttribute(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) PRIVILEGE: Remove attributes only when principal has access to write on them.voidremoveAttributes(PerunSession sess, Facility facility, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.voidremoveAttributes(PerunSession sess, Group group, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.voidremoveAttributes(PerunSession sess, Host host, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.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) PRIVILEGE: Remove attributes only when principal has access to write on them.voidremoveAttributes(PerunSession sess, Member member, Group group, List<? extends AttributeDefinition> attributes, boolean workWithUserAttributes) PRIVILEGE: Remove attributes only when principal has access to write on them.voidremoveAttributes(PerunSession sess, Member member, Resource resource, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.voidremoveAttributes(PerunSession sess, Member member, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.voidremoveAttributes(PerunSession sess, Resource resource, Group group, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.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) PRIVILEGE: Remove attributes only when principal has access to write on them.voidremoveAttributes(PerunSession sess, UserExtSource ues, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.voidremoveAttributes(PerunSession sess, User user, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.voidremoveAttributes(PerunSession sess, Vo vo, List<? extends AttributeDefinition> attributes) PRIVILEGE: Remove attributes only when principal has access to write on them.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) Stores attribute associated with group resource combination.voidsetAttribute(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 (associateed witk 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.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 member and group combination.voidsetAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) Store the attributes associated with the member and group 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) Store the attributes associated with the group on resource.voidsetAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttributes) Store the attributes associated with group and resource if workWithUserAttributes is true then also from group itself.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.voidsetAttributesManagerBl(AttributesManagerBl attributesManagerBl) Sets the attributesManagerBl for this instance.voidsetPerunBl(PerunBl perunBl) Sets the perunBl for this instance.updateAttributeDefinition(PerunSession perunSession, AttributeDefinition attributeDefinition) Updates AttributeDefinition.
-
Constructor Details
-
AttributesManagerEntry
Constructor. -
AttributesManagerEntry
public AttributesManagerEntry()
-
-
Method Details
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, Facility facility, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, WrongReferenceAttributeValueException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this facility attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility for which you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't facility attributeWrongReferenceAttributeValueException- if the attribute value has wrong/illegal semanticsAttributeNotExistsException- if given attribute does not exist
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, Vo vo, Attribute attribute) throws PrivilegeException, VoNotExistsException, WrongAttributeAssignmentException, AttributeNotExistsException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerCheck if value of this vo attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionvo- vo for which you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenVoNotExistsException- if the vo doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't vo attributeAttributeNotExistsException- if given attribute does not existWrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this resource attribute has valid semantics.- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource for which you want to check validity of attributeattribute- attribute to checkPRIVILEGE: Check attribute only when principal has access to write on it.
- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't resource attributeWrongReferenceAttributeValueException- if the attribute value has wrong/illegal semanticsAttributeNotExistsException- if given attribute does not exist
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, Member member, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerCheck if value of this member-resource attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member for which (and for specified resource) you want to check validity of attributeresource- resource for which (and for specified member) you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in underlying data sourceMemberNotExistsException- if specified member does not existWrongAttributeAssignmentException- if attribute isn't member-resource attributeWrongReferenceAttributeValueException- if the attribute value has wrong/illegal semanticsAttributeNotExistsException- if given attribute does not existMemberResourceMismatchException- if member and resource are not in the same VO
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, Member member, Group group, Attribute attribute) throws PrivilegeException, GroupNotExistsException, MemberNotExistsException, AttributeNotExistsException, MemberGroupMismatchException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerCheck if value of this member-group attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member for which (and for specified group) you want to check validity of attributegroup- group for which (and for specified member) you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if specified group does not existMemberNotExistsException- if specified member does not existAttributeNotExistsException- if given attribute does not existWrongAttributeAssignmentException- if attribute isn't member-resource attributeWrongReferenceAttributeValueException- if the attribute value has wrong/illegal semanticsMemberGroupMismatchException
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, Member member, Attribute attribute) throws PrivilegeException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this member attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member for which (and for specified resource) you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenMemberNotExistsException- if specified member does not existWrongAttributeAssignmentException- if attribute isn't member-resource attributeWrongReferenceAttributeValueException- if the attribute value has wrong/illegal semanticsAttributeNotExistsException- if given attribute does not exist
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, Facility facility, User user, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this user-facility attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility for which (and for specified user) you want to check validity of attributeuser- user for which (and for specified facility) you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in underlying data sourceUserNotExistsException- if the user doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't user-facility attributeWrongReferenceAttributeValueException- if the attribute value has wrong/illegal semanticsAttributeNotExistsException- if given attribute does not exist
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, User user, Attribute attribute) throws PrivilegeException, UserNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this user attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionuser- user for which (and for specified facility) you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenUserNotExistsException- if the user doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't user-facility attributeWrongReferenceAttributeValueException- if the attribute value has wrong/illegal semanticsAttributeNotExistsException- if given attribute does not exist
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, Host host, Attribute attribute) throws PrivilegeException, WrongAttributeAssignmentException, AttributeNotExistsException, HostNotExistsException Description copied from interface:AttributesManagerChecks if value of this host attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionhost- host for which attribute validity is checked- Throws:
PrivilegeException- if privileges are not givenWrongAttributeAssignmentException- if the attribute isn't host attributeAttributeNotExistsException- if given attribute doesn't existHostNotExistsException- if specified host doesn't exist
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, Group group, Attribute attribute) throws PrivilegeException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, GroupNotExistsException Description copied from interface:AttributesManagerChecks if value of this group attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessiongroup- group for which attribute validity is checked- Throws:
PrivilegeException- if privileges are not givenWrongAttributeAssignmentException- if the attribute isn't group attributeWrongReferenceAttributeValueException- if the attribute value has wrong/illegal semanticsAttributeNotExistsException- if given attribute doesn't existGroupNotExistsException- if specified group doesn't exist
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, Resource resource, Group group, Attribute attribute) throws PrivilegeException, AttributeNotExistsException, GroupNotExistsException, ResourceNotExistsException, GroupResourceMismatchException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerChecks if value of this group-resource attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource which attr you want checkgroup- group which attr you want to checkattribute- attribute to be checked- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if given attribute doesn't existGroupNotExistsException- if the group doesn't exist in underlying data sourceResourceNotExistsException- if the resource doesn't exist in underlying data sourceGroupResourceMismatchException- if group and resource are not in the same VOWrongAttributeAssignmentException- if the attribute isn't group-resource attributeWrongReferenceAttributeValueException- if the attribute value has wrong/illegal semantics
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSession sess, UserExtSource ues, Attribute attribute) throws PrivilegeException, WrongAttributeAssignmentException, AttributeNotExistsException, UserExtSourceNotExistsException Description copied from interface:AttributesManagerChecks if value of this user external source attribute has valid semantics.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSemanticsin interfaceAttributesManager- Parameters:
sess- perun sessionues- user external source for which attribute validity is checked- Throws:
PrivilegeException- if privileges are not givenWrongAttributeAssignmentException- if the attribute isn't UserExtSource attributeAttributeNotExistsException- if given attribute doesn't existUserExtSourceNotExistsException- if specified user external source doesn't exist
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, Facility facility, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this facility attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility for which you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exist in underlying data sourceWrongAttributeValueException- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException- if attribute isn't facility attributeAttributeNotExistsException- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, Vo vo, Attribute attribute) throws PrivilegeException, VoNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this vo attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionvo- vo for which you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenVoNotExistsException- if the vo doesn't exist in underlying data sourceWrongAttributeValueException- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException- if attribute isn't vo attributeAttributeNotExistsException- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this resource attribute has valid syntax.- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource for which you want to check validity of attributeattribute- attribute to checkPRIVILEGE: Check attribute only when principal has access to write on it.
- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exist in underlying data sourceWrongAttributeValueException- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException- if attribute isn't resource attributeAttributeNotExistsException- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, Member member, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerCheck if value of this member-resource attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member for which (and for specified resource) you want to check validity of attributeresource- resource for which (and for specified member) you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exist in underlying data sourceMemberNotExistsException- if the member doesn't exist in the underlying data sourceWrongAttributeValueException- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException- if attribute isn't member-resource attributeAttributeNotExistsException- if the attribute does not exist in underlying data sourceMemberResourceMismatchException- if member and resource are not in the same VO
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, Member member, Group group, Attribute attribute) throws PrivilegeException, GroupNotExistsException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerCheck if value of this member-group attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member for which (and for specified group) you want to check validity of attributegroup- group for which (and for specified member) you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if the group doesn't exist in the underlying data sourceMemberNotExistsException- if the member doesn't exist in the underlying data sourceWrongAttributeValueException- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException- if attribute isn't member-group attributeAttributeNotExistsException- if the attribute does not exist in underlying data sourceMemberGroupMismatchException
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, Member member, Attribute attribute) throws PrivilegeException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this member attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member for which (and for specified resource) you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenMemberNotExistsException- if the member doesn't exist in the underlying data sourceWrongAttributeValueException- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException- if attribute isn't member attributeAttributeNotExistsException- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, Facility facility, User user, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this user-facility attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility for which (and for specified user) you want to check validity of attributeuser- user for which (and for specified facility) you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exist in underlying data sourceUserNotExistsException- if the user doesn't exist in underlying data sourceWrongAttributeValueException- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException- if attribute isn't user-facility attributeAttributeNotExistsException- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, User user, Attribute attribute) throws PrivilegeException, UserNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerCheck if value of this user attribute has valid syntax.PRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionuser- user for which (and for specified facility) you want to check validity of attributeattribute- attribute to check- Throws:
PrivilegeException- if privileges are not givenUserNotExistsException- if the user doesn't exist in underlying data sourceWrongAttributeValueException- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException- if attribute isn't user attributeAttributeNotExistsException- if the attribute does not exist in underlying data source
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, Host host, Attribute attribute) throws PrivilegeException, WrongAttributeAssignmentException, AttributeNotExistsException, HostNotExistsException, WrongAttributeValueException Description copied from interface:AttributesManagerChecks if value of this host attribute has valid syntaxPRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionhost- host for which attribute validity is checked- Throws:
PrivilegeException- if privileges are not givenWrongAttributeAssignmentException- if the attribute isn't host attributeAttributeNotExistsException- if given attribute doesn't existHostNotExistsException- if specified host doesn't existWrongAttributeValueException- if the attribute value has wrong/illegal syntax
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, Group group, Attribute attribute) throws PrivilegeException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, GroupNotExistsException Description copied from interface:AttributesManagerChecks if value of this group attribute has valid syntaxPRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessiongroup- group for which attribute validity is checked- Throws:
PrivilegeException- if privileges are not givenWrongAttributeValueException- if the attribute value has wrong/illegal syntaxWrongAttributeAssignmentException- if the attribute isn't group attributeAttributeNotExistsException- if given attribute doesn't existGroupNotExistsException- if specified group doesn't exist
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, Resource resource, Group group, Attribute attribute) throws PrivilegeException, AttributeNotExistsException, WrongAttributeValueException, GroupNotExistsException, ResourceNotExistsException, GroupResourceMismatchException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerChecks if value of this group-resource attribute has valid syntaxPRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource which attr you want checkgroup- group which attr you want to checkattribute- attribute to be checked- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if given attribute doesn't existWrongAttributeValueException- if the attribute value has wrong/illegal syntaxGroupNotExistsException- if the group doesn't exist in underlying data sourceResourceNotExistsException- if the resource doesn't exist in underlying data sourceGroupResourceMismatchException- if group and resource are not in the same VOWrongAttributeAssignmentException- if the attribute isn't group-resource attribute
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSession sess, UserExtSource ues, Attribute attribute) throws PrivilegeException, WrongAttributeAssignmentException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeValueException Description copied from interface:AttributesManagerChecks if value of this user external source attribute has valid syntaxPRIVILEGE: Check attribute only when principal has access to write on it.
- Specified by:
checkAttributeSyntaxin interfaceAttributesManager- Parameters:
sess- perun sessionues- user external source for which attribute validity is checked- Throws:
PrivilegeException- if privileges are not givenWrongAttributeAssignmentException- if the attribute isn't UserExtSource attributeAttributeNotExistsException- if given attribute doesn't existUserExtSourceNotExistsException- if specified user external source doesn't existWrongAttributeValueException- if the attribute value has wrong/illegal syntax
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Facility facility, List<Attribute> attributes) throws PrivilegeException, FacilityNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- Throws:
WrongReferenceAttributeValueException- if any of attributes values has wrong/illegal semanticsPrivilegeExceptionFacilityNotExistsExceptionWrongAttributeAssignmentExceptionAttributeNotExistsException- See Also:
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Vo vo, List<Attribute> attributes) throws PrivilegeException, VoNotExistsException, WrongAttributeAssignmentException, AttributeNotExistsException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- Throws:
WrongReferenceAttributeValueException- if any of attributes values has wrong/illegal semanticsPrivilegeExceptionVoNotExistsExceptionWrongAttributeAssignmentExceptionAttributeNotExistsException- See Also:
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Resource resource, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- Throws:
WrongReferenceAttributeValueException- if any of attributes values has wrong/illegal semanticsPrivilegeExceptionResourceNotExistsExceptionWrongAttributeAssignmentExceptionAttributeNotExistsException- See Also:
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- 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:
PrivilegeExceptionResourceNotExistsExceptionMemberNotExistsExceptionWrongAttributeAssignmentExceptionWrongReferenceAttributeValueExceptionAttributeNotExistsExceptionMemberResourceMismatchException- See Also:
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws PrivilegeException, MemberNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerCheck if value of attributes has valid semantics. Attributes can be from namespace: member, user, member-resource and user-facility.PRIVILEGE: Check attributes only when principal has access to write on them.
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- Throws:
PrivilegeExceptionResourceNotExistsExceptionMemberNotExistsExceptionFacilityNotExistsExceptionUserNotExistsExceptionWrongAttributeAssignmentExceptionWrongReferenceAttributeValueExceptionAttributeNotExistsExceptionMemberResourceMismatchException
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Member member, List<Attribute> attributes) throws PrivilegeException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on themBatch version of checkAttributeSemantics
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- Throws:
PrivilegeExceptionMemberNotExistsExceptionWrongAttributeAssignmentExceptionWrongReferenceAttributeValueExceptionAttributeNotExistsException- See Also:
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on themBatch version of checkAttributeSemantics
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- Throws:
PrivilegeExceptionFacilityNotExistsExceptionUserNotExistsExceptionWrongAttributeAssignmentExceptionWrongReferenceAttributeValueExceptionAttributeNotExistsException- See Also:
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, User user, List<Attribute> attributes) throws PrivilegeException, UserNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- Throws:
PrivilegeExceptionUserNotExistsExceptionWrongAttributeAssignmentExceptionWrongReferenceAttributeValueExceptionAttributeNotExistsException- See Also:
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Host host, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, HostNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.batch version of checkAttributeSemantics
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- Throws:
PrivilegeExceptionAttributeNotExistsExceptionHostNotExistsExceptionWrongAttributeAssignmentException- See Also:
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.batch version of checkAttributeSemantics
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- Throws:
PrivilegeExceptionAttributeNotExistsExceptionUserExtSourceNotExistsExceptionWrongAttributeAssignmentException- See Also:
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, MemberNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, AttributeNotExistsException, GroupNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSemantics
- Specified by:
checkAttributesSemanticsin interfaceAttributesManager- 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:
PrivilegeExceptionMemberNotExistsExceptionWrongAttributeAssignmentExceptionWrongReferenceAttributeValueExceptionAttributeNotExistsExceptionGroupNotExistsExceptionMemberGroupMismatchException- See Also:
-
checkAttributesSemantics
public void checkAttributesSemantics(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttribute) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException, WrongReferenceAttributeValueException -
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Facility facility, List<Attribute> attributes) throws PrivilegeException, FacilityNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- Throws:
WrongAttributeValueException- if any of attributes values has wrong/illegal syntaxPrivilegeExceptionFacilityNotExistsExceptionWrongAttributeAssignmentExceptionAttributeNotExistsException- See Also:
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Vo vo, List<Attribute> attributes) throws PrivilegeException, VoNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- Throws:
WrongAttributeValueException- if any of attributes values has wrong/illegal syntaxPrivilegeExceptionVoNotExistsExceptionWrongAttributeAssignmentExceptionAttributeNotExistsException- See Also:
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Resource resource, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- Throws:
WrongAttributeValueException- if any of attributes values has wrong/illegal syntaxPrivilegeExceptionResourceNotExistsExceptionWrongAttributeAssignmentExceptionAttributeNotExistsException- See Also:
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- 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:
PrivilegeExceptionResourceNotExistsExceptionMemberNotExistsExceptionWrongAttributeValueExceptionWrongAttributeAssignmentExceptionAttributeNotExistsExceptionMemberResourceMismatchException- See Also:
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws PrivilegeException, MemberNotExistsException, GroupNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, GroupNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- 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:
PrivilegeExceptionMemberNotExistsExceptionWrongAttributeValueExceptionWrongAttributeAssignmentExceptionAttributeNotExistsExceptionGroupNotExistsExceptionMemberGroupMismatchException- See Also:
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerCheck if value of attributes has valid syntax. Attributes can be from namespace: member, user, member-resource and user-facility.PRIVILEGE: Check attributes only when principal has access to write on them.
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- Throws:
PrivilegeExceptionResourceNotExistsExceptionMemberNotExistsExceptionFacilityNotExistsExceptionUserNotExistsExceptionWrongAttributeValueExceptionWrongAttributeAssignmentExceptionAttributeNotExistsExceptionMemberResourceMismatchException
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Member member, List<Attribute> attributes) throws PrivilegeException, MemberNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on themBatch version of checkAttributeSyntax
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- Throws:
PrivilegeExceptionMemberNotExistsExceptionWrongAttributeValueExceptionWrongAttributeAssignmentExceptionAttributeNotExistsException- See Also:
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on themBatch version of checkAttributeSyntax
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- Throws:
PrivilegeExceptionFacilityNotExistsExceptionUserNotExistsExceptionWrongAttributeValueExceptionWrongAttributeAssignmentExceptionAttributeNotExistsException- See Also:
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, User user, List<Attribute> attributes) throws PrivilegeException, UserNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- Throws:
PrivilegeExceptionUserNotExistsExceptionWrongAttributeValueExceptionWrongAttributeAssignmentExceptionAttributeNotExistsException- See Also:
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Host host, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, HostNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.batch version of checkAttributeSyntax
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- Throws:
PrivilegeExceptionAttributeNotExistsExceptionHostNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueException- See Also:
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.Batch version of checkAttributeSyntax
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Check attributes only when principal has access to write on them.batch version of checkAttributeSyntax
- Specified by:
checkAttributesSyntaxin interfaceAttributesManager- Throws:
PrivilegeExceptionAttributeNotExistsExceptionUserExtSourceNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueException- See Also:
-
checkAttributesSyntax
public void checkAttributesSyntax(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttribute) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, GroupResourceMismatchException -
checkNamespace
public void checkNamespace(PerunSession sess, AttributeDefinition attribute, String namespace) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerDetermine if attribute is from specified namespace.PRIVILEGE: No access needed.
- Specified by:
checkNamespacein interfaceAttributesManager- Throws:
WrongAttributeAssignmentException- if the attribute isn't from specified namespace
-
checkNamespace
public void checkNamespace(PerunSession sess, List<? extends AttributeDefinition> attributes, String namespace) throws WrongAttributeAssignmentException Description copied from interface:AttributesManagerDetermine if attributes are from specified namespace.PRIVILEGE: No access needed.
- Specified by:
checkNamespacein interfaceAttributesManager- Throws:
WrongAttributeAssignmentException- if any of the attribute isn't from specified namespace
-
convertAttributeToNonunique
public void convertAttributeToNonunique(PerunSession session, int attrId) throws PrivilegeException, AttributeNotExistsException, AttributeNotMarkedUniqueException Description copied from interface:AttributesManagerConverts attribute to non-unique.Unmarks unique flag from attribute definition, and deletes all values from a special table with unique constraint that ensures that all values remain unique.
- Specified by:
convertAttributeToNonuniquein interfaceAttributesManager- Parameters:
session- perun sessionattrId- attribute id- Throws:
PrivilegeException- insufficient permissionsAttributeNotExistsException- when the attribute definition for attrId doesn't existAttributeNotMarkedUniqueException- when the attribute definition is not unique
-
convertAttributeToUnique
public void convertAttributeToUnique(PerunSession session, int attrId) throws PrivilegeException, AttributeNotExistsException, AttributeAlreadyMarkedUniqueException Description copied from interface:AttributesManagerConverts attribute to unique. Marks the attribute definition as unique, and copies all values to a special table with unique constraint that ensures that all values remain unique. Values of type ArrayList and LinkedHashMap are splitted into multiple values, thus each of the subvalues must be unique.Entityless attributes cannot be converted to unique, only attributes attached to PerunBeans or pairs of PerunBeans.
- Specified by:
convertAttributeToUniquein interfaceAttributesManager- Parameters:
session- perun sessionattrId- attribute id- Throws:
PrivilegeExceptionAttributeNotExistsExceptionAttributeAlreadyMarkedUniqueException
-
createAttribute
public AttributeDefinition createAttribute(PerunSession sess, AttributeDefinition attribute) throws PrivilegeException, AttributeDefinitionExistsException Description copied from interface:AttributesManagerCreates an attribute, the attribute is stored into the appropriate DB table according to the namespacePRIVILEGE: Only PerunAdmin can create new attribute.
- Specified by:
createAttributein interfaceAttributesManager- Parameters:
sess- perun sessionattribute- attribute to create- Returns:
- attribute with set id
- Throws:
PrivilegeException- if privileges are not givenAttributeDefinitionExistsException- if attribute already exists
-
deleteAttribute
public void deleteAttribute(PerunSession sess, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, RelationExistsException Description copied from interface:AttributesManagerDeletes the attribute.PRIVILEGE: Only PerunAdmin can delete existing attribute.
- Specified by:
deleteAttributein interfaceAttributesManager- Throws:
PrivilegeException- if privileges are not givenRelationExistsException- if attribute definition has any relation to some application form item or to some service as a required attributeAttributeNotExistsException
-
deleteAttribute
public void deleteAttribute(PerunSession sess, AttributeDefinition attributeDefinition, boolean force) throws PrivilegeException, AttributeNotExistsException Description copied from interface:AttributesManagerDeletes the attribute.PRIVILEGE: Only PerunAdmin can delete existing attribute.
- Specified by:
deleteAttributein interfaceAttributesManager- Parameters:
attributeDefinition- attribute to deleteforce- delete also all existing relation. If this parameter is true the RelationExistsException is never thrown.- Throws:
PrivilegeExceptionAttributeNotExistsException
-
doTheMagic
public void doTheMagic(PerunSession sess, Member member) throws PrivilegeException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Only for PerunAdmin.Same as doTheMagic(sess, member, false);
- Specified by:
doTheMagicin interfaceAttributesManager- Throws:
PrivilegeExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueExceptionMemberNotExistsException
-
doTheMagic
public void doTheMagic(PerunSession sess, Member member, boolean trueMagic) throws PrivilegeException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberNotExistsException Description copied from interface:AttributesManagerThis function takes all member-related attributes (member, user, member-resource, user-facility) and tries to fill them and set them. If trueMagic is set, this method can remove invalid attribute value (value which didn't pass checkAttributeSemantics test) and try to fill and set another. In this case, WrongReferenceAttributeValueException, WrongAttributeValueException are thrown if same attribute can't be set correctly.PRIVILEGE: Only for PerunAdmin.
- Specified by:
doTheMagicin interfaceAttributesManager- Throws:
PrivilegeExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueExceptionMemberNotExistsException
-
fillAttribute
public Attribute fillAttribute(PerunSession sess, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerThis method tries to fill a value of the resource attribute. Value may be copied from some facility attribute.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Specified by:
fillAttributein interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource, attribute of which you want to fillattribute- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in underlying data sourceWrongAttributeAssignmentException
-
fillAttribute
public Attribute fillAttribute(PerunSession sess, Member member, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerThis method tries to fill value of the member-resource attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Specified by:
fillAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- member which attribute you want to fillresource- resource which attribute you want to fillattribute- attribute to fill. If attribute already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in underlying data sourceMemberNotExistsException- if member doesn't exists in underlying data source or he doesn't have access to this resourceWrongAttributeAssignmentExceptionMemberResourceMismatchException
-
fillAttribute
public Attribute fillAttribute(PerunSession sess, Member member, Group group, Attribute attribute) throws PrivilegeException, MemberNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerThis method tries to fill value of the member-group attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Specified by:
fillAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- attribute of this member (and resource) you want to fillgroup- attribute of this group you want to fillattribute- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
PrivilegeException- if privileges are not givenMemberNotExistsException- if member doesn't exists in underlying data source or he doesn't have access to this resourceGroupNotExistsException- if group doesn't existsWrongAttributeAssignmentExceptionMemberGroupMismatchException
-
fillAttribute
public Attribute fillAttribute(PerunSession sess, Member member, Attribute attribute) throws PrivilegeException, MemberNotExistsException, AttributeNotExistsException Description copied from interface:AttributesManagerThis method tries to fill value of the member attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Specified by:
fillAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- attribute of this member (and resource) and you want to fillattribute- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
PrivilegeException- if privileges are not givenMemberNotExistsException- if member doesn't exists in underlying data source or he doesn't have access to this resourceAttributeNotExistsException- if the attribute doesn't exists in underlying data source
-
fillAttribute
public Attribute fillAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerThis method tries to fill value of the user-facility attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Specified by:
fillAttributein interfaceAttributesManager- Parameters:
sess- perun sessionfacility- attribute of this facility (and user) and you want to filluser- attribute of this user (and facility) and you want to fillattribute- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in underlying data sourceUserNotExistsException- if user doesn't exists in underlying data source or he doesn't have access to this facilityAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceWrongAttributeAssignmentException
-
fillAttribute
public Attribute fillAttribute(PerunSession sess, User user, Attribute attribute) throws PrivilegeException, UserNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerThis method tries to fill value of the user attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Specified by:
fillAttributein interfaceAttributesManager- Parameters:
sess- perun sessionuser- attribute of this user (and facility) and you want to fillattribute- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which MAY have filled value
- Throws:
PrivilegeException- if privileges are not givenUserNotExistsException- if user doesn't exists in underlying data source or he doesn't have access to this facilityAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceWrongAttributeAssignmentException
-
fillAttribute
public Attribute fillAttribute(PerunSession sess, Resource resource, Group group, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException Description copied from interface:AttributesManagerThis method tries to fill group-resource attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Specified by:
fillAttributein interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource which attr you want to fillgroup- group which attr you want to fillattribute- attribute to be filled- Returns:
- attribute which MAY have filled value
- Throws:
PrivilegeException- if privileges are not givenWrongAttributeAssignmentException- if attribute isn't group-resource attributeResourceNotExistsExceptionGroupNotExistsExceptionAttributeNotExistsExceptionGroupResourceMismatchException
-
fillAttribute
public Attribute fillAttribute(PerunSession sess, Host host, Attribute attribute) throws PrivilegeException, HostNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerThis method tries to fill host attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Specified by:
fillAttributein interfaceAttributesManager- Parameters:
sess- perun sessionhost- host for which you want have attribute filledattribute- attr which you want to fill- Returns:
- attribute which MAY have filled value
- Throws:
PrivilegeException- if privileges are not givenWrongAttributeAssignmentException- if attribute isn't group-resource attributeHostNotExistsExceptionAttributeNotExistsException
-
fillAttribute
public Attribute fillAttribute(PerunSession sess, Group group, Attribute attribute) throws PrivilegeException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerThis method tries to fill group attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Specified by:
fillAttributein interfaceAttributesManager- Parameters:
group- group which attribute you want to fillattribute- attribute which you want to fill- Returns:
- attribute which may have filled value
- Throws:
PrivilegeExceptionGroupNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentException
-
fillAttribute
public Attribute fillAttribute(PerunSession sess, UserExtSource ues, Attribute attribute) throws PrivilegeException, UserExtSourceNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerThis method tries to fill value of the user external source attribute. This value is automatically generated, but not all attributes can be filled this way.PRIVILEGE: Fill attribute only when principal has access to write on it.
- Specified by:
fillAttributein interfaceAttributesManager- Parameters:
sess- perun sessionues- user external source which will be filled with attributeattribute- attribute to fill. If attributes already have set value, this value won't be overwritten. This means the attribute value must be empty otherwise this method won't fill it.- Returns:
- attribute which may have filled value
- Throws:
PrivilegeException- if privileges are not givenUserExtSourceNotExistsException- if user external source doesn't exists in underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceWrongAttributeAssignmentException
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Resource resource, List<Attribute> attributes) throws ResourceNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
- Specified by:
fillAttributesin interfaceAttributesManager- Throws:
ResourceNotExistsExceptionWrongAttributeAssignmentException- See Also:
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws ResourceNotExistsException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
- Specified by:
fillAttributesin interfaceAttributesManager- Throws:
ResourceNotExistsExceptionMemberNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentExceptionMemberResourceMismatchException- See Also:
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.- Specified by:
fillAttributesin interfaceAttributesManager- 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:
ResourceNotExistsExceptionMemberNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentExceptionMemberResourceMismatchException
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws MemberNotExistsException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
- Specified by:
fillAttributesin interfaceAttributesManager- Throws:
MemberNotExistsExceptionGroupNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentExceptionMemberGroupMismatchException- See Also:
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws MemberNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, GroupNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.- Specified by:
fillAttributesin interfaceAttributesManager- 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:
MemberNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentExceptionGroupNotExistsExceptionMemberGroupMismatchException
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerThis method tries to fill value of the user, member, member-resource and user-facility attributes. This value is automatically generated, but not all attributes can be filled this way. This method skips all attributes with not-null value.PRIVILEGE: Fill attributes only when principal has access to write on them.
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Member member, List<Attribute> attributes) throws MemberNotExistsException, AttributeNotExistsException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
- Specified by:
fillAttributesin interfaceAttributesManager- Throws:
MemberNotExistsExceptionAttributeNotExistsException- See Also:
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
- Specified by:
fillAttributesin interfaceAttributesManager- Throws:
FacilityNotExistsExceptionUserNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentException- See Also:
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, User user, List<Attribute> attributes) throws UserNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute. This method skips all attributes with not-null value.
- Specified by:
fillAttributesin interfaceAttributesManager- Throws:
UserNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentException- See Also:
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws ResourceNotExistsException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.batch version of fillAttribute, this method skips attributes with non-null value
- Specified by:
fillAttributesin interfaceAttributesManager- Throws:
ResourceNotExistsExceptionGroupNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentExceptionGroupResourceMismatchException- See Also:
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Host host, List<Attribute> attributes) throws HostNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute
- Specified by:
fillAttributesin interfaceAttributesManager- Throws:
HostNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentException- See Also:
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Group group, List<Attribute> attributes) throws GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute
- Specified by:
fillAttributesin interfaceAttributesManager- Throws:
GroupNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentException- See Also:
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws UserExtSourceNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerPRIVILEGE: Fill attributes only when principal has access to write on them.Batch version of fillAttribute.
- Specified by:
fillAttributesin interfaceAttributesManager- Throws:
UserExtSourceNotExistsExceptionAttributeNotExistsExceptionWrongAttributeAssignmentException- See Also:
-
fillAttributes
public List<Attribute> fillAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttributes) throws ResourceNotExistsException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException -
getAllAttributesStartWithNameWithoutNullValue
public List<Attribute> getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Group group, String startPartOfName) throws GroupNotExistsException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the group starts with name startPartOfName. Get only nonvirtual attributes with notNull value.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAllAttributesStartWithNameWithoutNullValuein interfaceAttributesManager- Parameters:
sess- perun sessiongroup- to get the attributes fromstartPartOfName- attribute name start with this part- Returns:
- list of attributes which name start with startPartOfName
- Throws:
GroupNotExistsException- if the group doesn't exist
-
getAllAttributesStartWithNameWithoutNullValue
public List<Attribute> getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Resource resource, String startPartOfName) throws ResourceNotExistsException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the resource starts with name startPartOfName. Get only nonvirtual attributes with notNull value.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAllAttributesStartWithNameWithoutNullValuein interfaceAttributesManager- Parameters:
sess- perun sessionresource- to get the attributes fromstartPartOfName- attribute name start with this part- Returns:
- list of attributes which name start with startPartOfName
- Throws:
ResourceNotExistsException- if the resource doesn't exist
-
getAllNamespaces
Description copied from interface:AttributesManagerReturns list of all possible namespaces.- Specified by:
getAllNamespacesin interfaceAttributesManager- Parameters:
sess- session- Returns:
- list of namespaces
- Throws:
PrivilegeException- insufficient permissions
-
getAttribute
public Attribute getAttribute(PerunSession sess, Facility facility, String attributeName) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the facility.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionfacility- to get attribute fromattributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute is not facility attribute
-
getAttribute
public Attribute getAttribute(PerunSession sess, Vo vo, String attributeName) throws PrivilegeException, VoNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the vo.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionvo- to get attribute fromattributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenVoNotExistsException- if the vo doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute is not vo attribute
-
getAttribute
public Attribute getAttribute(PerunSession sess, Group group, String attributeName) throws PrivilegeException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the group.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessiongroup- group get attribute fromattributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if the group doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute is not group attribute
-
getAttribute
public Attribute getAttribute(PerunSession sess, Resource resource, String attributeName) throws PrivilegeException, ResourceNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the resource.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionresource- to get attribute fromattributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute is not resource attribute
-
getAttribute
public Attribute getAttribute(PerunSession sess, Member member, Resource resource, String attributeName) throws PrivilegeException, ResourceNotExistsException, AttributeNotExistsException, MemberNotExistsException, MemberResourceMismatchException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the member on this resource.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get attribute fromresource- to get attribute fromattributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceMemberResourceMismatchException- if member and resource are not in the same VOWrongAttributeAssignmentException- if attribute is not member_resource attribute
-
getAttribute
public Attribute getAttribute(PerunSession sess, Member member, Group group, String attributeName) throws PrivilegeException, GroupNotExistsException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerGet particular attribute for the member in this group.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get attribute fromgroup- to get attribute fromattributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if the resource doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute is not member_group attributeMemberGroupMismatchException
-
getAttribute
public Attribute getAttribute(PerunSession sess, Member member, String attributeName) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the member.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get attribute fromattributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceWrongAttributeAssignmentException
-
getAttribute
public Attribute getAttribute(PerunSession sess, Facility facility, User user, String attributeName) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the user on this facility.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionfacility- to get attribute fromuser- to get attribute fromattributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceUserNotExistsException- if the user doesn't exists in the underlying data sourceWrongAttributeAssignmentException
-
getAttribute
public Attribute getAttribute(PerunSession sess, User user, String attributeName) throws PrivilegeException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the user.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionuser- to get attribute fromattributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceUserNotExistsException- if the user doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute is not user attribute
-
getAttribute
public Attribute getAttribute(PerunSession sess, Host host, String attributeName) throws PrivilegeException, AttributeNotExistsException, HostNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the hostPRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionhost- to get attribute fromattributeName- attribute name defined in host manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceHostNotExistsException- if the host doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't host attribute
-
getAttribute
public Attribute getAttribute(PerunSession sess, Resource resource, Group group, String attributeName) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException Description copied from interface:AttributesManagerGet particular group attribute on resourcePRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource to get attributes fromgroup- group to get attributes forattributeName- attribute name- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't group-resource attributeResourceNotExistsExceptionGroupNotExistsExceptionGroupResourceMismatchException
-
getAttribute
public Attribute getAttribute(PerunSession sess, String key, String attributeName) throws AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular entityless attributePRIVILEGE: Only PerunAdmin can access to entitylessAttributes.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionkey- key to get attribute forattributeName- attribute name- Returns:
- attribute
- Throws:
AttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't entityless attribute
-
getAttribute
public Attribute getAttribute(PerunSession sess, UserExtSource ues, String attributeName) throws PrivilegeException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the user external source.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributein interfaceAttributesManager- Parameters:
sess- perun sessionues- to get attribute fromattributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceUserExtSourceNotExistsException- if the user external source doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't ues attribute
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, Facility facility, int id) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the facility.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Parameters:
facility- to get attribute fromid- attribute id- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't facility attribute
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, Vo vo, int id) throws PrivilegeException, VoNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the vo.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Parameters:
vo- to get attribute fromid- attribute id- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenVoNotExistsException- if the vo doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't facility attribute
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, Resource resource, int id) throws PrivilegeException, ResourceNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the resource.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Parameters:
resource- to get attribute fromid- attribute id- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't resource attribute
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, Member member, Resource resource, int id) throws PrivilegeException, ResourceNotExistsException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException Description copied from interface:AttributesManagerGet particular attribute for the member on this resource.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Parameters:
member- to get attribute fromresource- to get attribute fromid- attribute id- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't resource-member attributeMemberResourceMismatchException
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, Member member, Group group, int id) throws PrivilegeException, GroupNotExistsException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, MemberGroupMismatchException Description copied from interface:AttributesManagerGet particular attribute for the member in this group.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get attribute fromgroup- to get attribute fromid- attribute id- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if the resource doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't member-group attributeMemberGroupMismatchException
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, Member member, int id) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the member.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Parameters:
member- to get attribute fromid- attribute id- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't member attribute
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, Facility facility, User user, int id) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the user on this facility.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Parameters:
facility- to get attribute fromuser- to get attribute fromid- attribute id- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceUserNotExistsException- if the user doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't user-facility attribute
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, User user, int id) throws PrivilegeException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the user.PRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Parameters:
user- to get attribute fromid- attribute id- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceUserNotExistsException- if the user doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute isn't user attribute
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, Host host, int id) throws PrivilegeException, AttributeNotExistsException, HostNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for the hostPRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceHostNotExistsException- if the host doesn't exist in the underlying data sourceWrongAttributeAssignmentException- if the attribute isn't host attribute
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, Resource resource, Group group, int id) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException Description copied from interface:AttributesManagerGet particular group attribute on this resourcePRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceResourceNotExistsExceptionGroupNotExistsExceptionWrongAttributeAssignmentExceptionGroupResourceMismatchException
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, Group group, int id) throws PrivilegeException, AttributeNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for groupPRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceGroupNotExistsExceptionWrongAttributeAssignmentException
-
getAttributeById
public Attribute getAttributeById(PerunSession sess, UserExtSource ues, int id) throws PrivilegeException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet particular attribute for user external sourcePRIVILEGE: Principal need to have access to attribute which wants to get.
- Specified by:
getAttributeByIdin interfaceAttributesManager- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceUserExtSourceNotExistsExceptionWrongAttributeAssignmentException
-
getAttributeDefinition
public AttributeDefinition getAttributeDefinition(PerunSession sess, String attributeName) throws AttributeNotExistsException Description copied from interface:AttributesManagerGet attribute definition (attribute without defined value).PRIVILEGE: No access needed.
- Specified by:
getAttributeDefinitionin interfaceAttributesManager- Parameters:
attributeName- attribute name defined in the particular manager- Returns:
- attribute
- Throws:
AttributeNotExistsException- if the attribute doesn't exists in the underlying data source
-
getAttributeDefinitionById
public AttributeDefinition getAttributeDefinitionById(PerunSession sess, int id) throws AttributeNotExistsException Description copied from interface:AttributesManagerGet attribute definition (attribute without defined value).PRIVILEGE: No access needed.
- Specified by:
getAttributeDefinitionByIdin interfaceAttributesManager- Parameters:
id- attribute id- Returns:
- attribute
- Throws:
AttributeNotExistsException- if the attribute doesn't exists in the underlying data source
-
getAttributePolicyCollections
public List<AttributePolicyCollection> getAttributePolicyCollections(PerunSession sess, int attributeId) throws PrivilegeException, AttributeNotExistsException Description copied from interface:AttributesManagerGets attribute policy collections for an attribute definition with given id.- Specified by:
getAttributePolicyCollectionsin interfaceAttributesManager- Parameters:
sess- perun sessionattributeId- id of the attribute definition- Returns:
- all policy collections of the attribute definition
- Throws:
AttributeNotExistsException- when there is no attribute definition with such idPrivilegeException
-
getAttributeRules
public AttributeRules getAttributeRules(PerunSession sess, int attributeId) throws PrivilegeException, AttributeNotExistsException Description copied from interface:AttributesManagerGets attribute rules containing policy collections and critical actions for an attribute definition with given id- Specified by:
getAttributeRulesin interfaceAttributesManager- Parameters:
sess- perun sessionattributeId- id of the attribute definition- Returns:
- attribute rules of the attribute definition
- Throws:
AttributeNotExistsException- when there is no attribute definition with such idPrivilegeException
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Facility facility) throws FacilityNotExistsException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the facility. PRIVILEGE: Get only those attributes the principal has access to.- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility to get the attributes from- Returns:
- list of attributes
- Throws:
FacilityNotExistsException- if the facility doesn't exists in underlying data source
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Facility facility, List<String> attrNames) throws FacilityNotExistsException Description copied from interface:AttributesManagerGet all attributes associated with the facility which have name in list attrNames (empty too). Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- to get the attributes fromattrNames- list of attributes' names- Returns:
- list of attributes
- Throws:
FacilityNotExistsException- if the facility not exists in Perun
-
getAttributes
Description copied from interface:AttributesManagerGet all non-empty attributes associated with the vo. PRIVILEGE: Get only those attributes the principal has access to.- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionvo- vo to get the attributes from- Returns:
- list of attributes
- Throws:
VoNotExistsException- if the vo doesn't exists in underlying data source
-
getAttributes
Description copied from interface:AttributesManagerGet all non-empty attributes associated with the group. PRIVILEGE: Get only those attributes the principal has access to.- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessiongroup- group to get the attributes from- Returns:
- list of attributes
- Throws:
GroupNotExistsException- if the group doesn't exists in underlying data source
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Resource resource) throws ResourceNotExistsException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the resource. PRIVILEGE: Get only those attributes the principal has access to.- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource to get the attributes from- Returns:
- list of attributes
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data source
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Member member, Resource resource) throws MemberResourceMismatchException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the member on the resource. PRIVILEGE: Get only those attributes the principal has access to.- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get the attributes fromresource- to get the attributes from- Returns:
- list of attributes
- Throws:
MemberResourceMismatchException- if member and resource are not in the same VO
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerGets all non-empty attributes associated with the member on the resource and if workWithUserAttributes is true, gets also all non-empty user, user-facility and member attributes. PRIVILEGE: Get only those attributes the principal has access to.- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get the attributes fromresource- to get the attributes fromworkWithUserAttributes- if true returns also user-facility, user and member attributes (user is automatically get from member and facility is get from resource)- Returns:
- list of attributes
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceMemberResourceMismatchException- if member and resource are not in the same VO!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Member member, Resource resource, List<String> attrNames, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerGets 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 interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get the attributes fromresource- to get the attributes fromattrNames- list of attributes to getworkWithUserAttributes- if true returns also user and user-facility attributes (user is automatically get from member a facility is get from resource)- Returns:
- list of selected attributes
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceMemberResourceMismatchException- if member and resource are not in the same VO
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Member member, Group group) throws GroupNotExistsException, MemberNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the member in the group. PRIVILEGE: Get only those attributes the principal has access to.- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get the attributes fromgroup- group to get the attributes from- Returns:
- list of attributes
- Throws:
GroupNotExistsException- if the group doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceMemberGroupMismatchException
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Member member, Group group, List<String> attrNames) throws GroupNotExistsException, MemberNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerGet all attributes (empty and virtual too)associated with the member in the group which have name in list attrNames.- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get the attributes fromgroup- group to get the attributes fromattrNames- list of attributes' names- Returns:
- list of attributes
- Throws:
GroupNotExistsException- if the group doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceMemberGroupMismatchException
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Member member, Group group, List<String> attrNames, boolean workWithUserAttributes) throws GroupNotExistsException, MemberNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerGet 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 interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get the attributes fromgroup- group to get the attributes fromattrNames- list of attributes' namesworkWithUserAttributes- if true returns also user and member attributes (user is automatically get from member)- Returns:
- list of attributes
- Throws:
GroupNotExistsException- if the group doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceMemberGroupMismatchException
-
getAttributes
Description copied from interface:AttributesManagerGet all entityless attributes with subject equaled String keyPRIVILEGE: Only PerunAdmin can get Entityless attributes.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionkey- string of subject of entityless attributes- Returns:
- list of attributes
- Throws:
PrivilegeException- if privileges are not given
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member) throws ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerGet all non-empty member, user, member-resource and user-facility attributes.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Throws:
ResourceNotExistsExceptionMemberNotExistsExceptionFacilityNotExistsExceptionUserNotExistsExceptionMemberResourceMismatchException
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Member member) throws MemberNotExistsException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the member.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get the attributes from- Returns:
- list of attributes
- Throws:
MemberNotExistsException- if the member doesn't have access to this resource
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group, Member member, List<String> attrNames) throws ResourceNotExistsException, GroupNotExistsException, MemberNotExistsException, GroupResourceMismatchException, MemberResourceMismatchException, MemberGroupMismatchException Description copied from interface:AttributesManagerGet 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 interfaceAttributesManager- Parameters:
sess- perun sessionresource-group-attrNames- list of attributes' names- Returns:
- list of attributes
- Throws:
ResourceNotExistsException- if the resource doesn't existGroupNotExistsException- if the group doesn't existMemberNotExistsException- if the member doesn't existGroupResourceMismatchException- if group and resource are not from the same voMemberResourceMismatchException- if member and resource are not from the same voMemberGroupMismatchException
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) throws ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the group and resource. Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
If workWithGroupAttributes is true, return also all group attributes in list of attrNames (with virtual attributes too).
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- to get the attributes fromgroup- to get the attributes fromworkWithGroupAttributes- if group attributes need to be return too- Returns:
- list of attributes
- Throws:
ResourceNotExistsException- if the resource doesn't existGroupNotExistsException- if the group doesn't existGroupResourceMismatchException- if group and resource are not from the same vo
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group, List<String> attrNames, boolean workWithGroupAttributes) throws ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Description copied from interface:AttributesManagerGet all attributes associated with the group and the resource which have their name in list attrNames (empty too). Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
If workWithGroupAttributes is true, return also all group attributes in list of attrNames (with virtual attributes too).
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- to get the attributes fromgroup- to get the attributes fromattrNames- list of attributes' namesworkWithGroupAttributes- if group attributes need to be return too- Returns:
- list of attributes
- Throws:
ResourceNotExistsException- if the resource doesn't existGroupNotExistsException- if the group doesn't existGroupResourceMismatchException- if group and resource are not from the same vo
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Member member, List<String> attrNames) throws MemberNotExistsException Description copied from interface:AttributesManagerGet all attributes associated with the member which have name in list attrNames (empty too). Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get the attributes fromattrNames- list of attributes' names- Returns:
- list of attributes
- Throws:
MemberNotExistsException- if the member doesn't have access to this resource
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Group group, List<String> attrNames) throws GroupNotExistsException Description copied from interface:AttributesManagerGet all attributes associated with the group which have name in list attrNames (empty too). Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessiongroup- to get the attributes fromattrNames- list of attributes' names- Returns:
- list of attributes
- Throws:
GroupNotExistsException- if the group doesn't have access to this resource
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Resource resource, List<String> attrNames) throws ResourceNotExistsException Description copied from interface:AttributesManagerGet all attributes associated with the resource which have name in list attrNames (empty too). Virtual attribute too.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- to get the attributes fromattrNames- list of attributes' names- Returns:
- list of attributes
- Throws:
ResourceNotExistsException- if the resource not exists in Perun
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Member member, List<String> attrNames, boolean workWithUserAttributes) throws MemberNotExistsException Description copied from interface:AttributesManagerGet all attributes associated with the member which have name in list attrNames (empty too) Virtual attributes too.If workWithUserAttribute is true, return also all user attributes in list of attrNames (with virtual attributes too).
PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get the attributes fromattrNames- list of attributes' namesworkWithUserAttributes- if user attributes need to be returned too- Returns:
- list of member (and also if needed user) attributes
- Throws:
MemberNotExistsException
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Vo vo, List<String> attrNames) throws VoNotExistsException Description copied from interface:AttributesManagerGet all attributes associated with the vo which have name in list attrNames (empty too).PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionvo- to get the attributes fromattrNames- list of attributes' names- Returns:
- list of attributes
- Throws:
VoNotExistsException- if the vo doesn't have access to this resource
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, User user, List<String> attrNames) throws UserNotExistsException Description copied from interface:AttributesManagerGet all attributes associated with the user which have name in list attrNames (empty too).PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionuser- to get the attributes fromattrNames- list of attributes' names- Returns:
- list of attributes
- Throws:
UserNotExistsException- if the user doesn't exists
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, UserExtSource ues, List<String> attrNames) throws UserExtSourceNotExistsException Description copied from interface:AttributesManagerGet all attributes associated with the userExtSource which have name in list attrNames (empty too).PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionues- to get the attributes fromattrNames- list of attributes' names- Returns:
- list of attributes
- Throws:
UserExtSourceNotExistsException- if the UserExtSource doesn't have access to this resource
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Facility facility, User user) throws FacilityNotExistsException, UserNotExistsException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the user on the facility.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- to get the attributes fromuser- to get the attributes from- Returns:
- list of attributes
- Throws:
FacilityNotExistsException- if the facility doesn't exists in underlying data sourceUserNotExistsException- if the user doesn't have access to this facility
-
getAttributes
Description copied from interface:AttributesManagerGet all non-empty attributes associated with the user.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionuser- to get the attributes from- Returns:
- list of attributes
- Throws:
UserNotExistsException- if the user doesn't have access to this facility
-
getAttributes
Description copied from interface:AttributesManagerGet all non-empty attributes associated with the hostPRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionhost- host to get attributes from- Returns:
- list of attributes
- Throws:
HostNotExistsException- if the host doesn't exist in underlying data source
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Host host, List<String> attrNames) throws HostNotExistsException Description copied from interface:AttributesManagerGet all attributes associated with the host which have name in list attrNames (empty too). Empty list attrNames will return no attributes.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionhost- host to get attributes forattrNames- list of attributes' names- Returns:
- list of attributes
- Throws:
HostNotExistsException- if the host doesn't exist in underlying data source
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Resource resource, Group group) throws ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the group on resourcePRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Returns:
- list of group_resource attributes
- Throws:
ResourceNotExistsException- if the resource doesn't exist in underlying data sourceGroupNotExistsException- if the group doesn't exist in the underlying data sourceGroupResourceMismatchException
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, Member member, boolean workWithUserAttributes) throws MemberNotExistsException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the member and if workWithUserAttributes is true, get all non-empty attributes associated with user, who is this member.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- to get the attributes fromworkWithUserAttributes- if true returns also user attributes- Returns:
- list of attributes
- Throws:
MemberNotExistsException- if the member doesn't have access to this resource
-
getAttributes
public List<Attribute> getAttributes(PerunSession sess, UserExtSource ues) throws UserExtSourceNotExistsException Description copied from interface:AttributesManagerGet all non-empty attributes associated with the UserExtSource.PRIVILEGE: Get only those attributes the principal has access to.
- Specified by:
getAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionues- to get the attributes from- Returns:
- list of attributes
- Throws:
UserExtSourceNotExistsException- if the user external source doesn't exists
-
getAttributesByAttributeDefinition
public List<Attribute> getAttributesByAttributeDefinition(PerunSession sess, AttributeDefinition attributeDefinition) throws AttributeNotExistsException, WrongAttributeAssignmentException, PrivilegeException Description copied from interface:AttributesManagerReturns all attributes with not-null value which fits the attributeDefinition. Can't proscess core or virtual attributes.PRIVILEGE: Only PerunAdmin has access to get Attributes by AttributeDefinition
- Specified by:
getAttributesByAttributeDefinitionin interfaceAttributesManager- Throws:
AttributeNotExistsExceptionWrongAttributeAssignmentExceptionPrivilegeException
-
getAttributesDefinition
public List<AttributeDefinition> getAttributesDefinition(PerunSession sess, List<String> listOfAttributesNames) throws AttributeNotExistsException Description copied from interface:AttributesManagerFrom listOfAttributesNames get list of attributeDefinitionsPRIVILEGE: No access needed.
- Specified by:
getAttributesDefinitionin interfaceAttributesManager- Returns:
- list of AttributeDefinitions
- Throws:
AttributeNotExistsException
-
getAttributesDefinition
Description copied from interface:AttributesManagerGet all attributes definition (attribute without defined value).PRIVILEGE: No access needed.
- Specified by:
getAttributesDefinitionin interfaceAttributesManager- Returns:
- List of attributes definitions
-
getAttributesDefinitionByNamespace
public List<AttributeDefinition> getAttributesDefinitionByNamespace(PerunSession sess, String namespace) Description copied from interface:AttributesManagerGet attributes definition (attribute without defined value) with specified namespace.PRIVILEGE: No access needed.
- Specified by:
getAttributesDefinitionByNamespacein interfaceAttributesManager- Parameters:
namespace- get only attributes with this namespace- Returns:
- List of attributes
-
getAttributesDefinitionWithRights
public List<AttributeDefinition> getAttributesDefinitionWithRights(PerunSession sess, List<PerunBean> entities) Description copied from interface:AttributesManagerGet all (for entities) attributeDefinitions which user has right to READ them and fill attribute writable (if user has also right to WRITE them). For entities means that return only those attributeDefinition which are in namespace of entities or possible combination of entities. For Example: If entities are "member, user, resource" then return only AD in namespaces "member, user, resource and resource-member"- Specified by:
getAttributesDefinitionWithRightsin interfaceAttributesManager- Parameters:
entities- list of perunBeans (member, user...)- Returns:
- list of AttributeDefinitions with rights (writable will be filled correctly by user in session)
-
getAttributesManagerBl
Gets the attributesManagerBl for this instance.- Returns:
- The getAttributesManagerBl().
-
getEntitylessAttributes
public List<Attribute> getEntitylessAttributes(PerunSession sess, String attrName) throws PrivilegeException Description copied from interface:AttributesManagerGet all entityless attributes with attributeNamePRIVILEGE: Only PerunAdmin has access to entityless attributes.
- Specified by:
getEntitylessAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionattrName- attribute name- Returns:
- attribute
- Throws:
PrivilegeException- if privileges are not given
-
getEntitylessAttributesWithKeys
public Map<String,Attribute> getEntitylessAttributesWithKeys(PerunSession sess, String attrName) throws PrivilegeException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet entityless attributes mapped by their keys.- Specified by:
getEntitylessAttributesWithKeysin interfaceAttributesManager- Parameters:
sess- sessionattrName- attribute name- Returns:
- Map of entityless attributes mapped by their keys
- Throws:
PrivilegeException- insufficient permissionsAttributeNotExistsException- when the attribute definition for attrName doesn't existWrongAttributeAssignmentException- when passed non-entityless attribute
-
getEntitylessAttributesWithKeys
public Map<String,Attribute> getEntitylessAttributesWithKeys(PerunSession sess, String attrName, List<String> keys) throws PrivilegeException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerGet entityless attributes mapped by their keys. Returns only attributes for specified keys.- Specified by:
getEntitylessAttributesWithKeysin interfaceAttributesManager- Parameters:
sess- sessionattrName- attribute name- Returns:
- Map of entityless attributes mapped by their keys
- Throws:
PrivilegeException- insufficient permissionsAttributeNotExistsException- when the attribute definition for attrName doesn't exist, or when there is no such attribute for one of the specified keysWrongAttributeAssignmentException- when passed non-entityless attribute
-
getEntitylessKeys
public List<String> getEntitylessKeys(PerunSession sess, AttributeDefinition attributeDefinition) throws PrivilegeException Description copied from interface:AttributesManagerReturns list of Keys which fits the attributeDefinition.PRIVILEGE: Only PerunAdmin has access to entityless keys.
- Specified by:
getEntitylessKeysin interfaceAttributesManager- Throws:
PrivilegeException- if privileges are not given
-
getFriendlyNameFromAttributeName
Description copied from interface:AttributesManagerGets the friendly name from the attribute name.PRIVILEGE: No access needed.
- Specified by:
getFriendlyNameFromAttributeNamein interfaceAttributesManager- Returns:
- the friendly name from the attribute name
-
getIdpAttributeDefinitions
Description copied from interface:AttributesManagerReturns list of definitions of IdP attributes that are filled to fedInfo- Specified by:
getIdpAttributeDefinitionsin interfaceAttributesManager- Parameters:
sess- session- Returns:
- list of attribute definitions
-
getLogins
Description copied from interface:AttributesManagerGet all attributes with user's logins.PRIVILEGE: Get only those logins principal has access to.
- Specified by:
getLoginsin interfaceAttributesManager- Returns:
- list of attributes with login
- Throws:
UserNotExistsException
-
getModulesDependenciesGraph
public GraphDTO getModulesDependenciesGraph(PerunSession session, GraphTextFormat format) throws PrivilegeException Description copied from interface:AttributesManagerGenerates graph describing attribute modules dependencies. Text output format can be specified byGraphTextFormatformat.- Specified by:
getModulesDependenciesGraphin interfaceAttributesManager- Parameters:
session- sessionformat- text output format- Returns:
- body of text file containing description of modules dependencies.
- Throws:
PrivilegeException- insufficient permissions
-
getModulesDependenciesGraph
public GraphDTO getModulesDependenciesGraph(PerunSession session, GraphTextFormat format, String attributeName) throws PrivilegeException, AttributeNotExistsException Description copied from interface:AttributesManagerGenerates graph describing dependencies for given AttributeDefinition. Text output format can be specified byGraphTextFormatformat.- Specified by:
getModulesDependenciesGraphin interfaceAttributesManager- Parameters:
session- sessionformat- text output formatattributeName- attribute definition which dependencies will be used- Returns:
- body of text file containing description of modules dependencies.
- Throws:
PrivilegeException- insufficient permissionsAttributeNotExistsException
-
getNamespaceFromAttributeName
Description copied from interface:AttributesManagerGets the namespace from the attribute name.PRIVILEGE: No access needed.
- Specified by:
getNamespaceFromAttributeNamein interfaceAttributesManager- Returns:
- the namespace from the attribute name
-
getPerunBl
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Facility facility) throws FacilityNotExistsException Description copied from interface:AttributesManagerGet facility attributes which are required by all services which are related to this facility.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- you get attributes for this facility- Returns:
- list of facility attributes which are required by services
- Throws:
FacilityNotExistsException- if the facility wasn't created from this resource
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Resource resource) throws ResourceNotExistsException Description copied from interface:AttributesManagerGet resource attributes which are required by services which is relatod to this resource.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource for which you want to get the attributes- Returns:
- list of resource attributes which are required by services which are assigned to resource.
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data source
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Member member, Resource resource) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerGet member-resource attributes which are required by services which are relater to this member-resource.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- you get attributes for this member and the resourceresource- you get attributes for this resource and the member- Returns:
- list of member-resource attributes which are required by services which are assigned to resource.
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceMemberResourceMismatchException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Member member, Resource resource, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerIf workWithUserAttribute is false => Get member-resource attributes which are required by services which are relater to this member-resource. If workWithUserAttributes is true => Get member-resource, user-facility, user and member attributes. (user is get from member and facility from resource)PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- you get attributes for this member and the resourceresource- you get attributes for this resource and the memberworkWithUserAttributes- method can process also user, user-facility and member attributes (user is automatically get from member a facility is get from resource)- Returns:
- list of member-resource attributes or if workWithUserAttributes is true return list of member-resource, user, member and user-facility attributes
- Throws:
ResourceNotExistsExceptionMemberNotExistsExceptionMemberResourceMismatchException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Facility facility, User user) throws FacilityNotExistsException, UserNotExistsException Description copied from interface:AttributesManagerGet user-facility attributes which are required by services which are related to this user-facility.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility from which the services are takenuser- you get attributes for this user- Returns:
- list of user-facility attributes which are required by services which are assigned to facility.
- Throws:
FacilityNotExistsExceptionUserNotExistsException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Member member, boolean workWithUserAttributes) throws MemberNotExistsException Description copied from interface:AttributesManagerGet member attributes which are required by services which are relater to this member.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- you get attributes for this memberworkWithUserAttributes- method can process also user and user-facility attributes (user is automatically get from member a facility is get from resource)- Returns:
- list of member and user attributes which are required by services which are related to this member
- Throws:
MemberNotExistsException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Member member, Group group, boolean workWithUserAttributes) throws MemberNotExistsException, GroupNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerGet member, member-group attributes which are required by services which are relater to this member. If workWithUserAttributes = true, then user attributes are returned too.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- you get attributes for this membergroup- you get attributes for this groupworkWithUserAttributes- if TRUE, return also user attributes- Returns:
- list of member, member-group and optionally user attributes which are required by services which are related to this member
- Throws:
MemberNotExistsExceptionGroupNotExistsExceptionMemberGroupMismatchException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, User user) throws UserNotExistsException Description copied from interface:AttributesManagerGet user attributes which are required by services which are relater to this user.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun session- Returns:
- list of user's attributes which are required by services which are related to this user
- Throws:
UserNotExistsException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Facility facility) throws FacilityNotExistsException, ServiceNotExistsException Description copied from interface:AttributesManagerGet facility attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- attribute required by this servis you'll getfacility- you get attributes for this facility- Returns:
- list of facility attributes which are required by the service
- Throws:
FacilityNotExistsException- if the facility wasn't created from this resourceServiceNotExistsException- if the service doesn't exists in underlying data source
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Vo vo) throws VoNotExistsException, ServiceNotExistsException Description copied from interface:AttributesManagerGet vo attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- attribute required by this service you'll getvo- you get attributes for this vo- Returns:
- list of vo attributes which are required by the service
- Throws:
VoNotExistsException- if the vo wasn't created from this resourceServiceNotExistsException- if the service doesn't exists in underlying data source
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, List<Service> services, Facility facility) throws FacilityNotExistsException, ServiceNotExistsException Description copied from interface:AttributesManagerGet facility attributes which are required by the services.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservices- attributes required by this services you'll getfacility- you get attributes for this facility- Returns:
- list of facility attributes which are required by the service
- Throws:
FacilityNotExistsException- if the facility wasn't created from this resourceServiceNotExistsException- if the service doesn't exists in underlying data source
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource) throws ResourceNotExistsException, ServiceNotExistsException Description copied from interface:AttributesManagerGet resource attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- attributes required by this service you'll getresource- resource for which you want to get the attributes- Returns:
- list of resource attributes which are required by the service
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data sourceServiceNotExistsException- if the service doesn't exists in underlying data source
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, List<Service> services, Resource resource) throws ResourceNotExistsException, ServiceNotExistsException Description copied from interface:AttributesManagerGet resource attributes which are required by the services.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservices- attributes required by this services you'll getresource- you get attributes for this resource- Returns:
- list of facility attributes which are required by the service
- Throws:
ResourceNotExistsException- if the resource doesn't existsServiceNotExistsException- if the service doesn't exists in underlying data source
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource) throws ResourceNotExistsException, ServiceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerGet member-resource attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- attributes required by this services you'll getmember- you get attributes for this member and the resourceresource- you get attributes for this resource and the member- Returns:
- list of attributes which are required by the service.
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data sourceServiceNotExistsException- if the service doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceMemberResourceMismatchException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Resource resource, boolean workWithUserAttributes) throws ResourceNotExistsException, ServiceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Get only those required attributes principal has access to.!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Throws:
ResourceNotExistsExceptionServiceNotExistsExceptionMemberNotExistsExceptionMemberResourceMismatchException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group, Member member, boolean workWithUserAttributes) throws ResourceNotExistsException, ServiceNotExistsException, MemberNotExistsException, GroupNotExistsException, GroupResourceMismatchException, MemberResourceMismatchException Description copied from interface:AttributesManagerGet member, member-resource and member-group attributes required by the specified service. if workWithUserAttributes == TRUE return also user and user-facility attributesPRIVILEGE: Get only those required attributes principal has access to.
!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
Group and group-resource attributes are not supported in this context !!
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- you'll get attributes required by this serviceresource- you get attributes for this resource and the member and groupgroup- you get attributes for this group and resource and membermember- you get attributes for this member and the resource and groupworkWithUserAttributes- if TRUE return also user and user-facility attributes- Returns:
- list of attributes which are required by the service.
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data sourceServiceNotExistsException- if the service doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceGroupNotExistsException- if the group doesn't exists in underlying data sourceGroupResourceMismatchExceptionMemberResourceMismatchException
-
getRequiredAttributes
public HashMap<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, Resource resource, List<Member> members, boolean workWithUserAttributes) throws ServiceNotExistsException, ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerGet 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.- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- attribute required by this serviceresource- you get attributes for this resourcemembers- you get attributes for this list of membersworkWithUserAttributes- if true method can process also user, user-facility and member attributes- Returns:
- map of member objects and his list of attributes
- Throws:
ServiceNotExistsExceptionResourceNotExistsExceptionMemberNotExistsExceptionMemberResourceMismatchException
-
getRequiredAttributes
public HashMap<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, Resource resource, List<Member> members) throws ResourceNotExistsException, ServiceNotExistsException, MemberNotExistsException Description copied from interface:AttributesManagerGet member-resource attributes which are required by service for each member in list of members.- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- attribute required by this serviceresource- you get attributes for this resource and the membersmembers- you get attributes for this list of members and the resource- Returns:
- map of memberID and his list of attributes
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data sourceServiceNotExistsException- if the service doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resource
-
getRequiredAttributes
public HashMap<Member,List<Attribute>> getRequiredAttributes(PerunSession sess, Resource resource, Service service, List<Member> members) throws ServiceNotExistsException, ResourceNotExistsException, MemberNotExistsException Description copied from interface:AttributesManagerGet member attributes which are required by service for each member in list of members.- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource only to get allowed membersservice- attribute required by this servicemembers- you get attributes for this list of members- Returns:
- map of memberID and his list of attributes
- Throws:
ServiceNotExistsException- if the service doesn't exists in underlying data sourceResourceNotExistsException- if the resource doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resource
-
getRequiredAttributes
public HashMap<User,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, Facility facility, List<User> users) throws ServiceNotExistsException, FacilityNotExistsException, UserNotExistsException Description copied from interface:AttributesManagerGet user-facility attributes which are required by the service for each user in list of users.- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- attribute required by this servicefacility- you get attributes for this facility and userusers- you get attributes for this user and facility- Returns:
- map of user and his list of attributes
- Throws:
ServiceNotExistsException- if the service doesn't exists in underlying data sourceFacilityNotExistsException- if the facility wasn't created from this resourceUserNotExistsException- if the host doesn't exists in the underlying data source
-
getRequiredAttributes
public HashMap<User,List<Attribute>> getRequiredAttributes(PerunSession sess, Service service, List<User> users) throws ServiceNotExistsException, UserNotExistsException Description copied from interface:AttributesManagerGet user attributes which are required by the service for each user in list of users.- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- attribute required by this serviceusers- you get attributes for this user and facility- Returns:
- map of user and his list of attributes
- Throws:
ServiceNotExistsException- if the service doesn't exists in underlying data sourceUserNotExistsException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Group group) throws ServiceNotExistsException, MemberNotExistsException, GroupNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerGet member-group attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- attribute required by this service you'll getmember- you get attributes for this member and the resourcegroup- you get attributes for this group in which member is associated- Returns:
- list of attributes which are required by the service.
- Throws:
ServiceNotExistsException- if the service doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceGroupNotExistsExceptionMemberGroupMismatchException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member, Group group, boolean workWithUserAttributes) throws ServiceNotExistsException, MemberNotExistsException, GroupNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Get only those required attributes principal has access to.!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Throws:
ServiceNotExistsExceptionMemberNotExistsExceptionGroupNotExistsExceptionMemberGroupMismatchException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Member member) throws ServiceNotExistsException, MemberNotExistsException Description copied from interface:AttributesManagerGet member attributes which are required by the service.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- attribute required by this servis you'll getmember- you get attributes for this member and the resource- Returns:
- list of attributes which are required by the service.
- Throws:
ServiceNotExistsException- if the service doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resource
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group, boolean workWithGroupAttributes) throws ServiceNotExistsException, ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Description copied from interface:AttributesManagerGet group-resource attributes required for the service. !!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionservice- you will get attributes required by this serviceworkWithGroupAttributes- get also group attributes (which is required by the service) for this group- Throws:
ServiceNotExistsException- if the service doesn't exists in underlying data sourceResourceNotExistsExceptionGroupNotExistsExceptionGroupResourceMismatchException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Resource resource, Group group) throws ServiceNotExistsException, ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Description copied from interface:AttributesManagerGet group-resource attributes required for the service.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Throws:
ServiceNotExistsExceptionResourceNotExistsExceptionGroupNotExistsExceptionGroupResourceMismatchException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Host host) throws ServiceNotExistsException, HostNotExistsException Description copied from interface:AttributesManagerGet host required attributes for the servicePRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Throws:
ServiceNotExistsExceptionHostNotExistsException
-
getRequiredAttributes
public List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Group group) throws ServiceNotExistsException, GroupNotExistsException Description copied from interface:AttributesManagerGet group required attributes for the servicePRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getRequiredAttributesin interfaceAttributesManager- Throws:
ServiceNotExistsExceptionGroupNotExistsException
-
getRequiredAttributesDefinition
public List<AttributeDefinition> getRequiredAttributesDefinition(PerunSession sess, Service service) throws ServiceNotExistsException Description copied from interface:AttributesManagerGet all attributes which are required by service. Required attribues are requisite for Service to run.PRIVILEGE: No access needed.
- Specified by:
getRequiredAttributesDefinitionin interfaceAttributesManager- Parameters:
sess- sessservice- service from which the attributes will be listed- Returns:
- All attributes which are required by service.
- Throws:
ServiceNotExistsException- if the service doesn't exists in underlying data source
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerGet member-resource attributes which are required by services which are defined on "resourceToGetServicesFrom" resource.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresourceToGetServicesFrom- getRequired attributes from services which are assigned on this resourcemember- you get attributes for this member and the resourceresource- you get attributes for this resource and the member- Returns:
- list of member-resource attributes which are required by services which are assigned to specified resource
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceMemberResourceMismatchException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Resource resource, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerGet member-resource attributes which are required by services and if workWithUserAttributes is true also user, user-facility and member attributes. Services are known from the resourceToGetServicesFrom.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresourceToGetServicesFrom- getRequired attributes from services which are assigned on this resourcemember- you get attributes for this member and the resourceresource- you get attributes for this resource and the memberworkWithUserAttributes- method can process also user, user-facility and member attributes (user is automatically get from member a facility is get from resource)- Returns:
- list of member-resource attributes (if workWithUserAttributes is true also user, user-facility and member attributes) which are required by services which are assigned to another resource.
- Throws:
ResourceNotExistsExceptionMemberNotExistsExceptionMemberResourceMismatchException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group) throws ResourceNotExistsException, MemberNotExistsException, GroupNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerGet member-group attributes which are required by services defined on specified resource Services are known from the resourceToGetServicesFrom.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresourceToGetServicesFrom- getRequired attributes from services which are assigned on this resourcemember- you get attributes for this member and the groupgroup- you get attributes for this group and the member- Returns:
- list of group-resource's attributes which are required by services defined on specified resource
- Throws:
ResourceNotExistsExceptionMemberNotExistsExceptionGroupNotExistsExceptionMemberGroupMismatchException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member, Group group, boolean workWithUserAttributes) throws ResourceNotExistsException, MemberNotExistsException, GroupNotExistsException, MemberGroupMismatchException Description copied from interface:AttributesManagerGet member-group attributes which are required by services defined on specified resource and if workWithUserAttributes is true also user and member attributes. Services are known from the resourceToGetServicesFrom.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresourceToGetServicesFrom- getRequired attributes from services which are assigned on this resourcemember- you get attributes for this member and the groupgroup- you get attributes for this group and the memberworkWithUserAttributes- method can process also user and member attributes (user is automatically get from member)- Returns:
- list of group-resource's attributes which are required by services defined on specified resource
- Throws:
ResourceNotExistsExceptionMemberNotExistsExceptionGroupNotExistsExceptionMemberGroupMismatchException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, Resource resource, User user, Member member) throws ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerGet member, user, member-resource and user-facility attributes which are required by services which are defined on "resourceToGetServicesFrom" resource.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresourceToGetServicesFrom- getRequired attributes from services which are assigned on this resourceresource- you get attributes for this resource and the membermember- you get attributes for this member and the resource- Returns:
- list of member-resource attributes which are required by services which are assigned to specified resource
- Throws:
ResourceNotExistsException- if the resource doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't have access to this resourceFacilityNotExistsExceptionUserNotExistsExceptionMemberResourceMismatchException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Facility facility, User user) throws ResourceNotExistsException, FacilityNotExistsException, UserNotExistsException Description copied from interface:AttributesManagerGet user-facility attributes which are required by services which are defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresourceToGetServicesFrom- getRequired attributes from services which are assigned on this resourcefacility- facility from which the services are takenuser- you get attributes for this user- Returns:
- list of user-facility attributes which are required by services defined on specified resource
- Throws:
ResourceNotExistsExceptionFacilityNotExistsExceptionUserNotExistsException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Member member) throws MemberNotExistsException, ResourceNotExistsException Description copied from interface:AttributesManagerGet member attributes which are required by services defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresourceToGetServicesFrom- getRequired attributes from services which are assigned on this resourcemember- you get attributes for this member- Returns:
- list of member attributes which are required by services defined on specified resource
- Throws:
MemberNotExistsExceptionResourceNotExistsException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, User user) throws UserNotExistsException, ResourceNotExistsException Description copied from interface:AttributesManagerGet user attributes which are required by services defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresourceToGetServicesFrom- getRequired attributes from services which are assigned on this resource- Returns:
- list of user's attributes which are required by services defined on specified resource
- Throws:
UserNotExistsExceptionResourceNotExistsException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Host host) throws HostNotExistsException, ResourceNotExistsException Description copied from interface:AttributesManagerGet host attributes which are required by services defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
resourceToGetServicesFrom- getRequired attributes from services which are assigned on this resource- Returns:
- list of host's attributes which are required by services defined on specified resource
- Throws:
HostNotExistsExceptionResourceNotExistsException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group) throws ResourceNotExistsException, GroupNotExistsException Description copied from interface:AttributesManagerGet group-resource attributes which are required by services defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
resourceToGetServicesFrom- getRequired attributes from services which are assigned on this resource- Returns:
- list of group-resource's attributes which are required by services defined on specified resource
- Throws:
ResourceNotExistsExceptionGroupNotExistsException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Group group) throws ResourceNotExistsException, GroupNotExistsException Description copied from interface:AttributesManagerGet group attributes which are required by services defined on specified resourcePRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
resourceToGetServicesFrom- getRequired attributes from services which are assigned on this resource- Returns:
- list of group's attributes which are required by services defined on specified resource
- Throws:
ResourceNotExistsExceptionGroupNotExistsException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group, boolean workWithGroupAttributes) throws ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException Description copied from interface:AttributesManagerGet group-resource attributes which are required by services defined on specified resource Get also group attributes, if workWithGroupAttributes is true.PRIVILEGE: Get only those required attributes principal has access to.
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
resourceToGetServicesFrom- getRequired attributes from services which are assigned on this resourceworkWithGroupAttributes- if true, get also group required attributes- Returns:
- list of group_resource and (if workWithGroupAttributes is true) group required attributes
- Throws:
ResourceNotExistsExceptionGroupNotExistsExceptionGroupResourceMismatchException
-
getResourceRequiredAttributes
public List<Attribute> getResourceRequiredAttributes(PerunSession sess, Resource resourceToGetServicesFrom, Resource resource, Group group, Member member, boolean workWithUserAttributes) throws ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException, MemberNotExistsException, MemberGroupMismatchException, UserNotExistsException, FacilityNotExistsException, MemberResourceMismatchException Description copied from interface:AttributesManagerGet member-group and member-resource attributes required by the services specified on resource Get also user, member, user-facility attributes, if workWithUserAttributes is true.PRIVILEGE: Get only those required attributes principal has access to.
Group and group-resource attributes are not supported in this context !!
- Specified by:
getResourceRequiredAttributesin interfaceAttributesManager- Parameters:
resourceToGetServicesFrom- getRequired attributes from services which are assigned on this resourceworkWithUserAttributes- if true, get also user, member and user-facility required attributes- Returns:
- List of required attributes (member-group, member-resource). Return also user, member, user-facility attributes, if workWithUserAttributes is true.
- Throws:
ResourceNotExistsExceptionGroupNotExistsExceptionGroupResourceMismatchExceptionMemberNotExistsExceptionMemberGroupMismatchExceptionUserNotExistsExceptionFacilityNotExistsExceptionMemberResourceMismatchException
-
isCoreAttribute
Description copied from interface:AttributesManagerDetermine if attribute is core attribute.PRIVILEGE: No access needed.
- Specified by:
isCoreAttributein interfaceAttributesManager- Returns:
- true if attribute is core attribute
-
isCoreManagedAttribute
Description copied from interface:AttributesManagerDetermine if attribute is core-managed attribute.PRIVILEGE: No access needed.
- Specified by:
isCoreManagedAttributein interfaceAttributesManager- Returns:
- true if attribute is core-managed
-
isFromNamespace
Description copied from interface:AttributesManagerDetermine if attribute is from specified namespace.PRIVILEGE: No access needed.
- Specified by:
isFromNamespacein interfaceAttributesManager- Returns:
- true if the attribute is from specified namespace false otherwise
-
isOptAttribute
Description copied from interface:AttributesManagerDetermine if attribute is optional (opt) attribute.PRIVILEGE: No access needed.
- Specified by:
isOptAttributein interfaceAttributesManager- Returns:
- true if attribute is optional attribute false otherwise
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Resource resource, Group group, boolean workWithGroupAttributes) throws PrivilegeException, GroupNotExistsException, ResourceNotExistsException, GroupResourceMismatchException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset 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 interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource to set ongroup- group to set onworkWithGroupAttributes- if true, remove also group attributes, if false, remove only group_resource attributes- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if group not exists in perunResourceNotExistsException- if resource not exists in perunGroupResourceMismatchException- if group and resource has not the same voWrongAttributeValueException- if the attribute value is illegalWrongReferenceAttributeValueException- if some reference attribute has illegal value
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Facility facility) throws PrivilegeException, FacilityNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset all attributes for the facility.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- remove attributes from this facility- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Facility facility, boolean removeAlsoUserFacilityAttributes) throws PrivilegeException, FacilityNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset all attributes for the facility. If removeAlsoUserFacilityAttributes is true, remove all user-facility attributes of this facility and any user allowed in this facility.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- remove attributes from this facilityremoveAlsoUserFacilityAttributes- if true, remove all user-facility attributes for any user in this facility too- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Vo vo) throws PrivilegeException, VoNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset all attributes for the vo.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionvo- remove attributes from this vo- Throws:
PrivilegeException- if privileges are not givenVoNotExistsException- if the vo doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Group group) throws PrivilegeException, GroupNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset all attributes for the group.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessiongroup- remove attributes from this group- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if the group doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Resource resource) throws PrivilegeException, ResourceNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset all attributes for the resource.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- remove attributes from this resource- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Member member, Resource resource) throws PrivilegeException, MemberNotExistsException, ResourceNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerUnset all attributes for the member on the resource.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- remove attributes from this memberresource- remove attributes on this resource- Throws:
PrivilegeException- if privileges are not givenMemberNotExistsException- if the member doesn't exists in underlying data sourceResourceNotExistsException- if the resource doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueExceptionMemberResourceMismatchException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Member member, Group group) throws PrivilegeException, MemberNotExistsException, GroupNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerUnset all attributes for the member in the group.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- remove attributes from this membergroup- remove attributes for this group- Throws:
PrivilegeException- if privileges are not givenMemberNotExistsException- if the member doesn't exists in underlying data sourceGroupNotExistsException- if the resource doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueExceptionMemberGroupMismatchException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Member member) throws PrivilegeException, MemberNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset all attributes for the member.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- remove attributes from this member- Throws:
PrivilegeException- if privileges are not givenMemberNotExistsException- if the member doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Facility facility, User user) throws PrivilegeException, UserNotExistsException, FacilityNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset all attributes for the user on the facility.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionuser- remove attributes from this user- Throws:
PrivilegeException- if privileges are not givenUserNotExistsException- if the user doesn't exists in underlying data sourceFacilityNotExistsException- if the facility doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, User user) throws PrivilegeException, UserNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerUnset all attributes for the user.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionuser- remove attributes from this user- Throws:
PrivilegeException- if privileges are not givenUserNotExistsException- if the user doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueExceptionWrongAttributeAssignmentException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Host host) throws PrivilegeException, HostNotExistsException, WrongAttributeValueException Description copied from interface:AttributesManagerUnset all attributes for the hostPRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perunsessionhost- remove attributes from this host- Throws:
PrivilegeException- if privileges are not givenHostNotExistsException- if the host doesn't exists in underlying data sourceWrongAttributeValueException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, Resource resource, Group group) throws PrivilegeException, ResourceNotExistsException, GroupNotExistsException, GroupResourceMismatchException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerRemove all attributes for group on resourcePRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource to have attributes removedgroup- group to have attribute removed- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsExceptionGroupNotExistsExceptionGroupResourceMismatchExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAllAttributes
public void removeAllAttributes(PerunSession sess, UserExtSource ues) throws PrivilegeException, UserExtSourceNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset all attributes for the user external source.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAllAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionues- remove attributes from this user external source- Throws:
PrivilegeException- if privileges are not givenUserExtSourceNotExistsException- if the user external source doesn't exists in underlying data sourceWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, Facility facility, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, FacilityNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset particular attribute for the facility. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionfacility- remove attribute from this facilityattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceFacilityNotExistsException- if the facility doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't facility attribute or if it is core attributeWrongReferenceAttributeValueException- if the attribute isn't entityless attributeWrongAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, Group group, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset particular attribute for the group. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessiongroup- remove attribute from this groupattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceGroupNotExistsException- if the group doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't group attribute or if it is core attributeWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, String key, AttributeDefinition attribute) throws WrongAttributeAssignmentException, PrivilegeException, AttributeNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset particular entityless attribute with subject equals key.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionkey- subject of entityless attributeattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceWrongAttributeValueException- if the attribute value is wrong/illegalWrongAttributeAssignmentExceptionWrongReferenceAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, Vo vo, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, VoNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset particular attribute for the vo. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionvo- remove attribute from this voattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceVoNotExistsException- if the vo doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't vo attribute or if it is core attributeWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, Resource resource, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset particular attribute for the resource. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionresource- remove attribute from this resourceattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceResourceNotExistsException- if the resource doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't resource attribute or if it is core attributeWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, Member member, Resource resource, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, ResourceNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerUnset particular attribute for the member on the resource. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- remove attribute from this memberresource- remove attributes for this resourceattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't exists in underlying data sourceResourceNotExistsException- if the resource doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't member-resource attribute or if it is core attributeWrongAttributeValueExceptionWrongReferenceAttributeValueExceptionMemberResourceMismatchException
-
removeAttribute
public void removeAttribute(PerunSession sess, Member member, Group group, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerUnset particular attribute for the member in the group. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- remove attribute from this membergroup- remove attributes for this groupattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't exists in underlying data sourceGroupNotExistsException- if the resource doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't member-resource attribute or if it is core attributeWrongAttributeValueExceptionWrongReferenceAttributeValueExceptionMemberGroupMismatchException
-
removeAttribute
public void removeAttribute(PerunSession sess, Member member, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset particular attribute for the member. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- remove attribute from this memberattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't member attribute or if it is core attributeWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, Facility facility, User user, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, UserNotExistsException, FacilityNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset particular attribute for the user on the facility. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionfacility- remove attributes for this facilityuser- remove attribute from this userattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceUserNotExistsException- if the user doesn't exists in underlying data sourceFacilityNotExistsException- if the facility doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't user-facility attribute or if it is core attributeWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, User user, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset particular attribute for the user. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionuser- remove attribute from this userattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceUserNotExistsException- if the user doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't user-facility attribute or if it is core attributeWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, Host host, AttributeDefinition attribute) throws PrivilegeException, HostNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerUnset particular attribute for the host. Core attributes can't be removed this way.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perunSessionhost- remove attributes from this hostattribute- to remove- Throws:
PrivilegeException- if privileges are not givenHostNotExistsException- if the host doesn't exists in underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't host attribute or if it is core attributeWrongAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, Resource resource, Group group, AttributeDefinition attribute) throws PrivilegeException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, GroupResourceMismatchException, AttributeNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset particular group attribute on the resourcePRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionresource- remove attribute for this resourcegroup- remove attribute for this groupattribute- to be removed- Throws:
PrivilegeException- if privileges are not givenWrongAttributeAssignmentException- if attribute is not group-resource attributeResourceNotExistsExceptionGroupNotExistsExceptionGroupResourceMismatchExceptionAttributeNotExistsExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAttribute
public void removeAttribute(PerunSession sess, UserExtSource ues, AttributeDefinition attribute) throws PrivilegeException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset particular attribute for the user external source.PRIVILEGE: Remove attribute only when principal has access to write on it.
- Specified by:
removeAttributein interfaceAttributesManager- Parameters:
sess- perun sessionues- remove attribute from this user external sourceattribute- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceUserExtSourceNotExistsException- if the user external source doesn't exists in underlying data sourceWrongAttributeAssignmentException- if attribute isn't user external source attribute or if it is core attributeWrongAttributeValueExceptionWrongReferenceAttributeValueException
-
removeAttributes
public void removeAttributes(PerunSession sess, Facility facility, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, FacilityNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionFacilityNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, Resource resource, Group group, List<? extends AttributeDefinition> attributes, boolean workWithGroupAttributes) throws PrivilegeException, AttributeNotExistsException, GroupNotExistsException, ResourceNotExistsException, GroupResourceMismatchException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset the group-resource attributes. If an attribute is core attribute, then the attribute isn't unset (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 interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource to set ongroup- group to set onattributes- attributes which will be used to removingworkWithGroupAttributes- if true, remove also group attributes, if false, remove only group-resource attributes- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceGroupNotExistsException- if group not exists in perunResourceNotExistsException- if resource not exists in perunGroupResourceMismatchException- if group and resource has not the same voWrongAttributeAssignmentException- if attribute is not group-resource or group attributeWrongAttributeValueException- if the attribute value is illegalWrongReferenceAttributeValueException- if some reference attribute has illegal value
-
removeAttributes
public void removeAttributes(PerunSession sess, Vo vo, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, VoNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionVoNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, Group group, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionGroupNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, Resource resource, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, ResourceNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionResourceNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<? extends AttributeDefinition> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerUnset the member, user, member-resource and user-facility attributes. If an attribute is core attribute then the attribute isn't unset (It's skipped without any notification).PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource to set onmember- member to set on- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource, user, member or user-facility attributeFacilityNotExistsExceptionUserNotExistsExceptionWrongReferenceAttributeValueExceptionMemberResourceMismatchException
-
removeAttributes
public void removeAttributes(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<? extends AttributeDefinition> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupNotExistsException, GroupResourceMismatchException, MemberResourceMismatchException, MemberGroupMismatchException Description copied from interface:AttributesManagerUnset the member, user, member-group, member-resource and user-facility attributes. If an attribute is core attribute then the attribute isn't unset (It's skipped without any notification).PRIVILEGE: Remove attributes only when principal has write access on all of them.
Group and group-resource attributes are not supported in this context !!
- Specified by:
removeAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource to set onmember- member to set on- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource, user, member or user-facility attributeFacilityNotExistsExceptionUserNotExistsExceptionWrongReferenceAttributeValueExceptionGroupNotExistsExceptionGroupResourceMismatchExceptionMemberResourceMismatchExceptionMemberGroupMismatchException
-
removeAttributes
public void removeAttributes(PerunSession sess, Member member, Resource resource, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, ResourceNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionMemberNotExistsExceptionResourceNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueExceptionMemberResourceMismatchException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, Member member, Group group, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionMemberNotExistsExceptionGroupNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueExceptionMemberGroupMismatchException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, Member member, Group group, List<? extends AttributeDefinition> attributes, boolean workWithUserAttributes) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way. If workWithUserAttributes is true, unset also user attributes.
- Specified by:
removeAttributesin interfaceAttributesManager- Parameters:
workWithUserAttributes- if true, remove also user attributes, if false, remove only member-group attributes- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionMemberNotExistsExceptionGroupNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueExceptionMemberGroupMismatchException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, Member member, boolean workWithUserAttributes, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerUnset 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.PRIVILEGE: Remove attributes only when principal has access to write on them.
- Specified by:
removeAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- remove attribute from this memberworkWithUserAttributes- true if I want to unset all attributes associated with user, who is the member tooattributes- attribute to remove- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in underlying data sourceMemberNotExistsException- if the member doesn't exists in underlying data sourceWrongReferenceAttributeValueException- if attribute isn't member attribute or if it is core attributeWrongAttributeAssignmentExceptionWrongAttributeValueException
-
removeAttributes
public void removeAttributes(PerunSession sess, Member member, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, MemberNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionMemberNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, Facility facility, User user, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, UserNotExistsException, FacilityNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionUserNotExistsExceptionFacilityNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, User user, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionUserNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, Host host, List<? extends AttributeDefinition> attributes) throws PrivilegeException, HostNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
PrivilegeException- if privileges are not givenHostNotExistsException- if the host doesn't exists in underlying data sourceAttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourceWrongAttributeAssignmentException- if any of attributes isn't host attributeWrongAttributeValueException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, Resource resource, Group group, List<? extends AttributeDefinition> attributes) throws PrivilegeException, ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, AttributeNotExistsException, GroupResourceMismatchException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
PrivilegeExceptionResourceNotExistsExceptionGroupNotExistsExceptionWrongAttributeAssignmentExceptionAttributeNotExistsExceptionGroupResourceMismatchExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException- See Also:
-
removeAttributes
public void removeAttributes(PerunSession sess, UserExtSource ues, List<? extends AttributeDefinition> attributes) throws PrivilegeException, AttributeNotExistsException, UserExtSourceNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerPRIVILEGE: Remove attributes only when principal has access to write on them.Batch version of removeAttribute. This method automatically skip all core attributes which can't be removed this way.
- Specified by:
removeAttributesin interfaceAttributesManager- Throws:
AttributeNotExistsException- if the any of attributes doesn't exists in underlying data sourcePrivilegeExceptionUserExtSourceNotExistsExceptionWrongAttributeAssignmentExceptionWrongAttributeValueExceptionWrongReferenceAttributeValueException- See Also:
-
setAttribute
public void setAttribute(PerunSession sess, Facility facility, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the particular attribute associated with the facility. Core attributes can't be set this way.PRIVILEGE: Principal need to have access to all attribute which wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility to set onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not facility attribute or if it is core attributeWrongReferenceAttributeValueException
-
setAttribute
public void setAttribute(PerunSession sess, Vo vo, Attribute attribute) throws PrivilegeException, VoNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the particular attribute associated with the vo. Core attributes can't be set this way.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionvo- vo to set onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenVoNotExistsException- if the vo doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not vo attribute or if it is core attributeWrongReferenceAttributeValueException
-
setAttribute
public void setAttribute(PerunSession sess, Group group, Attribute attribute) throws PrivilegeException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the particular attribute associated with the group. Core attributes can't be set this way.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessiongroup- group to set onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if the group doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not group attribute or if it is core attributeWrongReferenceAttributeValueException
-
setAttribute
public void setAttribute(PerunSession sess, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the particular attribute associated with the resource. Core attributes can't be set this way.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource to set onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not resource attribute or if it is core attributeWrongReferenceAttributeValueException
-
setAttribute
public void setAttribute(PerunSession sess, Member member, Resource resource, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerStore the particular attribute associated with the resource and member combination. Core attributes can't be set this way.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- member to set onresource- resource to set onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource attribute or if it is core attributeWrongReferenceAttributeValueExceptionMemberResourceMismatchException
-
setAttribute
public void setAttribute(PerunSession sess, Member member, Group group, Attribute attribute) throws PrivilegeException, GroupNotExistsException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerStore the particular attribute associated with the group and member combination. Core attributes can't be set this way.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- member to set ongroup- group to set onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if the resource doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource attribute or if it is core attributeWrongReferenceAttributeValueExceptionMemberGroupMismatchException
-
setAttribute
public void setAttribute(PerunSession sess, Member member, Attribute attribute) throws PrivilegeException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the particular attribute associated with the member. Core attributes can't be set this way.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionmember- member to set onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource attribute or if it is core attributeWrongReferenceAttributeValueException
-
setAttribute
public void setAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the attribute associated with the facility and user combination. Core attributes can't be set this way.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility to set onuser- user to set onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in the underlying data sourceUserNotExistsException- if the user doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not user-facility attributeWrongReferenceAttributeValueException
-
setAttribute
public void setAttribute(PerunSession sess, User user, Attribute attribute) throws PrivilegeException, UserNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the attribute associated with the user. Core attributes can't be set this way.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionuser- user to set onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenUserNotExistsException- if the user doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not user-facility attributeWrongReferenceAttributeValueException
-
setAttribute
public void setAttribute(PerunSession sess, Host host, Attribute attribute) throws PrivilegeException, HostNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException Description copied from interface:AttributesManagerStore the attribute associated with the host. Core attributes can't be set this way.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perunsessionhost- host to set attributes onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not host attributeHostNotExistsException
-
setAttribute
public void setAttribute(PerunSession sess, Resource resource, Group group, Attribute attribute) throws PrivilegeException, ResourceNotExistsException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupResourceMismatchException Description copied from interface:AttributesManagerStores attribute associated with group resource combination.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionresource- to set attributes ongroup- to set attributes onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not group resource attributeResourceNotExistsExceptionGroupNotExistsExceptionWrongReferenceAttributeValueExceptionGroupResourceMismatchException
-
setAttribute
public void setAttribute(PerunSession sess, String key, Attribute attribute) throws PrivilegeException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStores entityless attribute (associateed witk string key).PRIVILEGE: Only PerunAdmin can get entityless attributes.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionkey- stopre the attribute for this keyattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not entityless attributeWrongReferenceAttributeValueException
-
setAttribute
public void setAttribute(PerunSession sess, UserExtSource ues, Attribute attribute) throws PrivilegeException, UserExtSourceNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the attribute associated with the user external source.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributein interfaceAttributesManager- Parameters:
sess- perun sessionues- user external source to set onattribute- attribute to set- Throws:
PrivilegeException- if privileges are not givenUserExtSourceNotExistsException- if the user external source doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not user external source attributeWrongReferenceAttributeValueException
-
setAttributeActionCriticality
public void setAttributeActionCriticality(PerunSession sess, AttributeDefinition attr, AttributeAction action, boolean critical, boolean global) throws RelationExistsException, RelationNotExistsException, PrivilegeException Description copied from interface:AttributesManagerMarks the action on attribute as critical, which may require additional authentication of user performing that action on attribute.- Specified by:
setAttributeActionCriticalityin interfaceAttributesManager- Parameters:
sess- sessionattr- attribute definitionaction- critical actioncritical- true if action should be set critical, false to non-criticalglobal- 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 actionRelationNotExistsException- if trying to unmark not critical actionPrivilegeException- insufficient permissions
-
setAttributePolicyCollections
public void setAttributePolicyCollections(PerunSession sess, List<AttributePolicyCollection> policyCollections) throws PrivilegeException, AttributeNotExistsException, RoleNotSupportedException, RoleObjectCombinationInvalidException Description copied from interface:AttributesManagerDeletes old attribute policy collections and sets all new attribute policy collections.- Specified by:
setAttributePolicyCollectionsin interfaceAttributesManager- Parameters:
sess- perun sessionpolicyCollections- list of policy collections to set- Throws:
PrivilegeException- insufficient permissionsAttributeNotExistsException- when there is no attribute definition with such idRoleNotSupportedException- when some of the AttributePolicyCollection does have a role which does not existRoleObjectCombinationInvalidException- when the combination role + RoleObject of any included policy isn't valid
-
setAttributes
public void setAttributes(PerunSession sess, Facility facility, List<Attribute> attributes) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the attributes associated with the facility. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility to set onattributes- attribute to set- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not facility attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal value
-
setAttributes
public void setAttributes(PerunSession sess, Vo vo, List<Attribute> attributes) throws PrivilegeException, VoNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the attributes associated with the vo. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionvo- vo to set onattributes- attribute to set- Throws:
PrivilegeException- if privileges are not givenVoNotExistsException- if the vo doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not vo attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal value
-
setAttributes
public void setAttributes(PerunSession sess, Group group, List<Attribute> attributes) throws PrivilegeException, GroupNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the attributes associated with the group. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessiongroup- group to set onattributes- attribute to set- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if the group doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not group attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal value
-
setAttributes
public void setAttributes(PerunSession sess, Resource resource, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the attributes associated with the resource. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource to set onattributes- attribute to set- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute is not resource attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal valueWrongAttributeValueException
-
setAttributes
public void setAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerStore 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).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member to set onresource- resource to set onattributes- attribute to set- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal valueMemberResourceMismatchException- if member and resource are not in the same VO
-
setAttributes
public void setAttributes(PerunSession sess, Member member, Resource resource, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerStore 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.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member to set onresource- resource to set onattributes- attribute to setworkWithUserAttributes- method can process also user, user-facility and member attributes (user is automatically get from member a facility is get from resource)- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal valueMemberResourceMismatchException- if member and resource are not in the same VO!!WARNING THIS IS VERY TIME-CONSUMING METHOD. DON'T USE IT IN BATCH!!
-
setAttributes
public void setAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes) throws PrivilegeException, GroupNotExistsException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerStore the attributes associated with the member and group combination. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member to set ongroup- group to set onattributes- attribute to set- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if the resource doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal valueMemberGroupMismatchException
-
setAttributes
public void setAttributes(PerunSession sess, Member member, Group group, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, GroupNotExistsException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberGroupMismatchException Description copied from interface:AttributesManagerStore the attributes associated with the member and group 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.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member to set ongroup- group to set onattributes- attribute to setworkWithUserAttributes- method can process also user and member attributes (user is automatically get from member)- Throws:
PrivilegeException- if privileges are not givenGroupNotExistsException- if the resource doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal valueMemberGroupMismatchException
-
setAttributes
public void setAttributes(PerunSession sess, Member member, List<Attribute> attributes, boolean workWithUserAttributes) throws PrivilegeException, MemberNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore 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).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member to set onattributes- attribute to setworkWithUserAttributes- true/false If true, we can use user attributes (get from this member) too- Throws:
PrivilegeException- if privileges are not givenMemberNotExistsException- if the member doesn't exists in the underlying data sourceUserNotExistsException- if the user (get from this member after workWithUserAttributes=true) doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member attribute or with workWithUserAttributes=true, if its not member or user attribute.WrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal value
-
setAttributes
public void setAttributes(PerunSession sess, Facility facility, Resource resource, User user, Member member, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, MemberResourceMismatchException Description copied from interface:AttributesManagerStore 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).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource attributeFacilityNotExistsExceptionUserNotExistsExceptionWrongReferenceAttributeValueExceptionMemberResourceMismatchException
-
setAttributes
public void setAttributes(PerunSession sess, Facility facility, Resource resource, Group group, User user, Member member, List<Attribute> attributes) throws PrivilegeException, ResourceNotExistsException, MemberNotExistsException, FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, GroupNotExistsException, GroupResourceMismatchException, MemberResourceMismatchException, MemberGroupMismatchException Description copied from interface:AttributesManagerStore 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).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
Group and group-resource attributes are not supported in this context.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility to set onresource- resource to set ongroup- group to set onuser- user to set onmember- member to set onattributes- Attributes to be stored- Throws:
PrivilegeException- if privileges are not givenResourceNotExistsException- if the resource doesn't exists in the underlying data sourceMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not one of user, member, user-facility, member-group, member-resourceFacilityNotExistsExceptionUserNotExistsExceptionWrongReferenceAttributeValueExceptionGroupNotExistsExceptionGroupResourceMismatchExceptionMemberResourceMismatchExceptionMemberGroupMismatchException
-
setAttributes
public void setAttributes(PerunSession sess, Member member, List<Attribute> attributes) throws PrivilegeException, MemberNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the attributes associated with the resource. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionmember- member to set onattributes- attribute to set- Throws:
PrivilegeException- if privileges are not givenMemberNotExistsException- if the member doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not member-resource attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal value
-
setAttributes
public void setAttributes(PerunSession sess, Facility facility, User user, List<Attribute> attributes) throws PrivilegeException, FacilityNotExistsException, UserNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore 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).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionfacility- facility to set onuser- user to set onattributes- attribute to set- Throws:
PrivilegeException- if privileges are not givenFacilityNotExistsException- if the facility doesn't exists in the underlying data sourceUserNotExistsException- if the user doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not user-facility attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal value
-
setAttributes
public void setAttributes(PerunSession sess, User user, List<Attribute> attributes) throws PrivilegeException, UserNotExistsException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException Description copied from interface:AttributesManagerStore the attributes associated with the user. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionuser- user to set onattributes- attribute to set- Throws:
PrivilegeException- if privileges are not givenUserNotExistsException- if the user doesn't exists in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not user attributeWrongReferenceAttributeValueException
-
setAttributes
public void setAttributes(PerunSession sess, Host host, List<Attribute> attributes) throws PrivilegeException, HostNotExistsException, AttributeNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException Description copied from interface:AttributesManagerStore the attributes associated with the host. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perunsessionhost- host to set attributes set- Throws:
PrivilegeException- if privileges are not givenHostNotExistsException- if the host doesn't exist in the underlying data sourceAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute is not host attributeWrongAttributeValueException- if the attribute value is illegal
-
setAttributes
public void setAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes) throws ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, AttributeNotExistsException, WrongReferenceAttributeValueException, PrivilegeException, GroupResourceMismatchException Description copied from interface:AttributesManagerStore the attributes associated with the group on resource.PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Throws:
ResourceNotExistsException- if resource doesn't exist in underlying data sourceGroupNotExistsException- if group doesn't exist in underlying data sourceWrongAttributeAssignmentException- if attribute is not group-resource attributeWrongReferenceAttributeValueException- if the attribute value is illegalPrivilegeException- if privileges are not givenGroupResourceMismatchException- if group and resource are not in the same VOWrongAttributeValueExceptionAttributeNotExistsException
-
setAttributes
public void setAttributes(PerunSession sess, Resource resource, Group group, List<Attribute> attributes, boolean workWithGroupAttributes) throws ResourceNotExistsException, GroupNotExistsException, WrongAttributeAssignmentException, WrongAttributeValueException, AttributeNotExistsException, WrongReferenceAttributeValueException, PrivilegeException, GroupResourceMismatchException Description copied from interface:AttributesManagerStore the attributes associated with group and resource if workWithUserAttributes is true then also from group itself. If an attribute is core attribute then the attribute isn't stored (It's skipped without any notification).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionresource- resource to set ongroup- group to set onattributes- attribute to setworkWithGroupAttributes- true/false If true, we can use group attributes too- Throws:
ResourceNotExistsException- if the resource (get from this member after workWithUserAttributes=true) doesn't exists in the underlying data sourceGroupNotExistsException- if the group doesn't exists in the underlying data sourceWrongAttributeAssignmentException- if attribute is not member attribute or with workWithUserAttributes=true, if its not member or user attribute.WrongAttributeValueException- if the attribute value is illegalAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal valuePrivilegeException- if privileges are not givenGroupResourceMismatchException- if group and resource are from the same vo
-
setAttributes
public void setAttributes(PerunSession sess, UserExtSource ues, List<Attribute> attributes) throws PrivilegeException, AttributeNotExistsException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, UserExtSourceNotExistsException Description copied from interface:AttributesManagerStore 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).PRIVILEGE: Principal need to have access to all attributes which he wants to set.
- Specified by:
setAttributesin interfaceAttributesManager- Parameters:
sess- perun sessionues- user external source to set onattributes- attribute to set- Throws:
PrivilegeException- if privileges are not givenAttributeNotExistsException- if the attribute doesn't exists in the underlying data sourceWrongAttributeValueException- if the attribute value is illegalWrongAttributeAssignmentException- if attribute is not user external source attributeWrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal valueUserExtSourceNotExistsException- if the user external source doesn't exists in the underlying data source
-
setAttributesManagerBl
Sets the attributesManagerBl for this instance.- Parameters:
attributesManagerBl- The attributesManagerBl.
-
setPerunBl
Sets the perunBl for this instance.- Parameters:
perunBl- The perunBl.
-
updateAttributeDefinition
public AttributeDefinition updateAttributeDefinition(PerunSession perunSession, AttributeDefinition attributeDefinition) throws AttributeNotExistsException, PrivilegeException Description copied from interface:AttributesManagerUpdates AttributeDefinition. PRIVILEGE: only PerunAdmin- Specified by:
updateAttributeDefinitionin interfaceAttributesManager- Returns:
- returns updated attributeDefinition
- Throws:
AttributeNotExistsExceptionPrivilegeException
-