public interface IPrincipalAttributeMechanics extends IViewableMechanics
COMMENTS_LINK_TYPE, CONTENT_LINK_TYPE, DEFAULT_ORDER, DEFAULT_PAGE_SIZE, DEFAULT_SORT, DETAILS_LINK_TYPE, LARGE_ICON_TYPE, LINK_TYPE, LINK_TYPE_COMMENTS, LINK_TYPE_CONTENT, LINK_TYPE_DETAILS, LINK_TYPE_EDIT, LINK_TYPE_HELP, LINK_TYPE_HELP_MAXIMIZED, LINK_TYPE_MAXIMIZED, LINK_TYPE_MINIMIZED, LINK_TYPE_PERMISSIONS, LINK_TYPE_PORTAL_CONTENT, LINK_TYPE_PORTLET_STANDALONE, LINK_TYPE_PROPERTIES, LINK_TYPE_RESTORED, LINK_TYPE_SUBSCRIPTIONS, LINK_TYPE_THUMBNAILS, LINK_TYPE_VERSIONS, PERMISSIONS_LINK_TYPE, PORTAL_CONTENT_LINK_TYPE, PROPERTIES_LINK_TYPE, PROPERTY_LINK_TARGET, PROPERTY_OWNER_NAME, PROPERTY_PARENT_NAME, PROPERTY_TOOLTIP, REFERENCE_ICON_TYPE, SUBSCRIPTIONS_LINK_TYPE, THUMBNAIL_ICON_TYPE, THUMBNAILS_LINK_TYPE, VERSIONS_LINK_TYPE
Modifier and Type | Method and Description |
---|---|
boolean |
canModifyPrincipal(IThingID userID,
IURI principalURI,
IThingID principalAttributeProviderID)
Determines if the given user has rights to modify the specified principal
|
void |
checkAccess(IThingID userID,
IURI principalURI,
IThingID principalAttributeProviderID)
whether this user can access this principal
|
void |
checkModifyPrincipal(IThingID userID,
IURI principalURI,
IThingID principalAttributeProviderID)
Determines if the given user has rights to modify the specified principal
|
void |
deletePrincipal(IURI principalURI)
Deletes the attribute storage object for a given principal and attribute provider
|
default void |
fireModifyPrincipalEvent(IThingID userID,
IURI principalURI,
IThingID principalAttributeProviderID,
DifferenceMap differenceMap)
Fire an event containing the difference map of the changed principal attributes
|
void |
fireModifyPrincipalEvent(IThingID userID,
IURI principalURI,
IThingID principalAttributeProviderID,
String propName,
Object propValue)
Fire an event that the principal has been modified.
|
default void |
fireModifyPrincipalEvent(IThingID userID,
IURI principalURI,
IThingID principalAttributeProviderID,
String propName,
Object propValue,
Object oldValue) |
Map<String,Object> |
getAllAttributes(IURI principalURI)
Get all of the available attributes from all of the principal attribute providers
|
Object |
getAttribute(IURI principalURI,
IThingID principalAttributeProviderID,
String attrName)
Retrieves an attribute
|
List<String> |
getAttributeNames(IURI principalURI,
IThingID principalAttributeProviderID)
The attribute names
|
Map<String,Object> |
getAttributes(IURI principalURI,
IThingID principalAttributeProviderID)
Get all of the attributes managed by this principal provider
|
List<String> |
getAttributeTitles(IURI principalURI,
IThingID principalAttributeProviderID,
Locale currentLocale)
The attribute titles
|
Object |
getTypedAttribute(IURI principalURI,
IThingID principalAttributeProviderID,
String attrName)
Retrieves an attribute
|
Map<String,TypedAttribute> |
getTypedAttributes(IURI principalURI,
IThingID principalAttributeProviderID)
Get all of the attributes managed by this principal provider as TypedAttribute objects
|
boolean |
hasAccess(IThingID userID,
IURI principalURI,
IThingID principalAttributeProviderID)
whether this user can access this principal
|
void |
modifyPrincipal(IURI principalURI,
String attrName,
Object attrValue,
IThingID principalAttributeProviderID)
Modifies an attribute managed by the principal attribute provider
|
void |
modifyPrincipalEx(IURI principalURI,
Map<String,?> attrMap,
IThingID principalAttributeProviderID)
Modifies a set of attributes managed by the principal attribute provider
|
canView, checkView, createPagingCookie, fireViewEvent, getCss, getCss, getDefaultLinkType, getFormattedProperty, getHierachicalUri, getIcon, getIcon, getLink, getLink, getListProperty, isEnabled, view, view
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
Map<String,Object> getAllAttributes(IURI principalURI) throws PortalException
principalURI
- PortalException
Map<String,Object> getAttributes(IURI principalURI, IThingID principalAttributeProviderID) throws PortalException
principalURI
- principalAttributeProviderID
- (null means the default for the service)PortalException
Object getAttribute(IURI principalURI, IThingID principalAttributeProviderID, String attrName) throws PortalException
principalURI
- principalAttributeProviderID
- (null means the default for the service)attrName
- PortalException
Map<String,TypedAttribute> getTypedAttributes(IURI principalURI, IThingID principalAttributeProviderID) throws PortalException
principalURI
- principalAttributeProviderID
- (null means the default for the service)PortalException
Object getTypedAttribute(IURI principalURI, IThingID principalAttributeProviderID, String attrName) throws PortalException
principalURI
- principalAttributeProviderID
- (null means the default for the service)attrName
- PortalException
List<String> getAttributeNames(IURI principalURI, IThingID principalAttributeProviderID) throws PortalException
principalURI
- principalAttributeProviderID
- (null means the default for the service)PortalException
List<String> getAttributeTitles(IURI principalURI, IThingID principalAttributeProviderID, Locale currentLocale) throws PortalException
principalURI
- principalAttributeProviderID
- (null means the default for the service)currentLocale
- (not currently used)PortalException
boolean canModifyPrincipal(IThingID userID, IURI principalURI, IThingID principalAttributeProviderID) throws PortalException, PortalAccessException
userID
- the user permissions to checkprincipalURI
- the URI to the principal object that is to be modifiedprincipalAttributeProviderID
- (null means the default for the service)PortalException
PortalAccessException
- if the user does not have accessvoid checkModifyPrincipal(IThingID userID, IURI principalURI, IThingID principalAttributeProviderID) throws PortalException, PortalAccessException
userID
- the user permissions to checkprincipalURI
- the URI to the principal object that is to be modifiedprincipalAttributeProviderID
- (null means the default for the service)PortalException
PortalAccessException
- if the user does not have accessvoid modifyPrincipal(IURI principalURI, String attrName, Object attrValue, IThingID principalAttributeProviderID) throws PortalException
principalURI
- attrName
- attrValue
- principalAttributeProviderID
- the principal's attribute provider (null means the default for the service)PortalException
void modifyPrincipalEx(IURI principalURI, Map<String,?> attrMap, IThingID principalAttributeProviderID) throws PortalException
principalURI
- attrMap
- a Map of key/value pairs representing attributesprincipalAttributeProviderID
- the principal's attribute provider (null means the default for the service)PortalException
void fireModifyPrincipalEvent(IThingID userID, IURI principalURI, IThingID principalAttributeProviderID, String propName, Object propValue) throws PortalException
userID
- the current user IDprincipalURI
- the principal that was modifiedprincipalAttributeProviderID
- (null means the default for the service)PortalException
default void fireModifyPrincipalEvent(IThingID userID, IURI principalURI, IThingID principalAttributeProviderID, String propName, Object propValue, Object oldValue) throws PortalException
PortalException
default void fireModifyPrincipalEvent(IThingID userID, IURI principalURI, IThingID principalAttributeProviderID, DifferenceMap differenceMap) throws PortalException
userID
- the current user IDprincipalURI
- the principal that was modifiedprincipalAttributeProviderID
- the principal's attribute provider (null means the default for the service)differenceMap
- difference map of the attributes that have been changedPortalException
boolean hasAccess(IThingID userID, IURI principalURI, IThingID principalAttributeProviderID) throws PortalException
userID
- principalURI
- PortalAccessException
PortalException
void checkAccess(IThingID userID, IURI principalURI, IThingID principalAttributeProviderID) throws PortalException, PortalAccessException
userID
- principalURI
- PortalAccessException
PortalException
void deletePrincipal(IURI principalURI) throws PortalException
principalURI
- PortalException