public interface AttributesManagement
Modifier and Type | Method and Description |
---|---|
void |
createAttribute(pl.edu.icm.unity.types.basic.EntityParam entity,
pl.edu.icm.unity.types.basic.Attribute attribute)
Creates an attribute (must not be present).
|
void |
createAttributeSuppressingConfirmation(pl.edu.icm.unity.types.basic.EntityParam entity,
pl.edu.icm.unity.types.basic.Attribute attribute)
Creates an attribute (must not be present).
|
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)
Updates or creates an attribute (may be present).
|
void |
setAttribute(pl.edu.icm.unity.types.basic.EntityParam entity,
pl.edu.icm.unity.types.basic.Attribute attribute,
boolean allowUpdate)
Deprecated.
use any of other create or set methods. Left as may be popular in groovy scripts
around
|
void |
setAttributeSuppressingConfirmation(pl.edu.icm.unity.types.basic.EntityParam entity,
pl.edu.icm.unity.types.basic.Attribute attribute)
Updates or creates an attribute (may be present).
|
@Deprecated void setAttribute(pl.edu.icm.unity.types.basic.EntityParam entity, pl.edu.icm.unity.types.basic.Attribute attribute, boolean allowUpdate) throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
void createAttribute(pl.edu.icm.unity.types.basic.EntityParam entity, pl.edu.icm.unity.types.basic.Attribute attribute) throws pl.edu.icm.unity.exceptions.EngineException
entity
- attribute
- update
- pl.edu.icm.unity.exceptions.EngineException
void setAttribute(pl.edu.icm.unity.types.basic.EntityParam entity, pl.edu.icm.unity.types.basic.Attribute attribute) throws pl.edu.icm.unity.exceptions.EngineException
entity
- attribute
- update
- pl.edu.icm.unity.exceptions.EngineException
void createAttributeSuppressingConfirmation(pl.edu.icm.unity.types.basic.EntityParam entity, pl.edu.icm.unity.types.basic.Attribute attribute) throws pl.edu.icm.unity.exceptions.EngineException
entity
- attribute
- update
- pl.edu.icm.unity.exceptions.EngineException
void setAttributeSuppressingConfirmation(pl.edu.icm.unity.types.basic.EntityParam entity, pl.edu.icm.unity.types.basic.Attribute attribute) 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 © 2019 Unity. All rights reserved.