public interface AttributesManagement
Modifier and Type | Method and Description |
---|---|
Collection<pl.edu.icm.unity.types.basic.AttributeExt> |
getAllAttributes(pl.edu.icm.unity.types.basic.EntityParam entity,
boolean effective,
String groupPath,
String attributeTypeId,
boolean allowDegrade)
Returns attributes of an entity, including hidden ones.
|
Collection<pl.edu.icm.unity.types.basic.AttributeExt> |
getAttributes(pl.edu.icm.unity.types.basic.EntityParam entity,
String groupPath,
String attributeTypeId)
Returns visible attributes of an entity.
|
void |
removeAttribute(pl.edu.icm.unity.types.basic.EntityParam entity,
String groupPath,
String attributeTypeId)
Removes a given attribute
|
void |
setAttribute(pl.edu.icm.unity.types.basic.EntityParam entity,
pl.edu.icm.unity.types.basic.Attribute attribute,
boolean update)
Creates or updates an attribute.
|
void setAttribute(pl.edu.icm.unity.types.basic.EntityParam entity, pl.edu.icm.unity.types.basic.Attribute attribute, boolean update) throws pl.edu.icm.unity.exceptions.EngineException
entity
- attribute
- update
- pl.edu.icm.unity.exceptions.EngineException
void removeAttribute(pl.edu.icm.unity.types.basic.EntityParam entity, String groupPath, String attributeTypeId) throws pl.edu.icm.unity.exceptions.EngineException
entity
- groupPath
- attributeTypeId
- pl.edu.icm.unity.exceptions.EngineException
Collection<pl.edu.icm.unity.types.basic.AttributeExt> getAttributes(pl.edu.icm.unity.types.basic.EntityParam entity, String groupPath, String attributeTypeId) throws pl.edu.icm.unity.exceptions.EngineException
entity
- groupPath
- attributeTypeId
- pl.edu.icm.unity.exceptions.EngineException
Collection<pl.edu.icm.unity.types.basic.AttributeExt> getAllAttributes(pl.edu.icm.unity.types.basic.EntityParam entity, boolean effective, String groupPath, String attributeTypeId, boolean allowDegrade) throws pl.edu.icm.unity.exceptions.EngineException
entity
- effective
- if false then attributes which are added by groups' attribute statements are
not included. Useful only for attribute management interfaces.groupPath
- attributeTypeId
- allowDegrade
- if true then in case that the caller has no permission to read hidden attributes,
the method will degrade itself and will try to return only the visible attributes, what requires
smaller permissions. Note that still it may cause authz error.pl.edu.icm.unity.exceptions.EngineException
Copyright © 2017 Unity. All rights reserved.