public interface IPrincipalMechanics extends IViewableContainerMechanics
IUser
,
IGroup
and IRole
and also deals with the directory server's IDirPrincipal
and it's related
subclassesCOMMENTS_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 |
---|---|
void |
checkAccess(IThingID userID,
IURI principalURI)
whether this user can access this principal
|
void |
fireDNUpdationEventEvent(String oldDN,
String newDN,
boolean isUpdationRequired)
DN has changed
|
void |
fireGroupMembershipEvent(IThingID userID,
IURI principalURI,
IDirPrincipalList origPrincipalList,
IDirPrincipalList newPrincipalList)
Group membership has changed
|
void |
fireGroupMembershipEvent(IThingID userID,
IURI principalURI,
IDirPrincipalList origPrincipalList,
IDirPrincipalList newPrincipalList,
int newAction)
Group membership has changed
|
void |
fireRoleMembershipEvent(IThingID userID,
IURI principalURI,
IDirPrincipalList origPrincipalList,
IDirPrincipalList newPrincipalList)
Membership has changed
|
void |
fireRoleMembershipEvent(IThingID userID,
IURI principalURI,
IDirPrincipalList origPrincipalList,
IDirPrincipalList newPrincipalList,
int newAction)
Membership has changed
|
IDirPrincipalList |
getGroupMembership(IURI principalURI)
Retrieve the group membership for this principal
|
IDirPrincipalList |
getMembers(IURI principalURI)
Get the members of this collection.
|
IThingID |
getPrincipalThingID(IURI principalURI)
Takes a principal's IURI (directory uri) and returns the metadata store's IThingID
Guarantees that this principal is initalized with the metadata store
|
IURI |
getPrincipalURI(IThingID principalThingID)
Takes a metadata store's IThingID and returns the directory URI
|
IDirPrincipalList |
getRoleMembership(IURI principalURI)
Retrieve the role membership for this principal
|
boolean |
hasAccess(IThingID userID,
IURI principalURI)
whether this user can access this principal
|
createPagingCookie
canView, checkView, fireViewEvent, getCss, getCss, getDefaultLinkType, getFormattedProperty, getHierachicalUri, getIcon, getIcon, getLink, getLink, getListProperty, getListPropertyHTML, getListPropertyJS, isEnabled, view, view
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
IThingID getPrincipalThingID(IURI principalURI) throws PortalException
principalURI
- PortalException
getPrincipalURI(com.webmethods.portal.service.meta2.thing.IThingID)
IURI getPrincipalURI(IThingID principalThingID) throws PortalException
principalThingID
- PortalException
getPrincipalThingID(com.webmethods.portal.system.IURI)
IDirPrincipalList getGroupMembership(IURI principalURI) throws PortalException
principalURI
- IDirPrincipalList
PortalException
IDirPrincipalList getRoleMembership(IURI principalURI) throws PortalException
principalURI
- IDirPrincipalList
PortalException
IDirPrincipalList getMembers(IURI principalURI) throws PortalException
principalURI
- PortalException
boolean hasAccess(IThingID userID, IURI principalURI) throws PortalException
userID
- principalURI
- PortalAccessException
PortalException
void checkAccess(IThingID userID, IURI principalURI) throws PortalException, PortalAccessException
userID
- principalURI
- PortalAccessException
PortalException
void fireRoleMembershipEvent(IThingID userID, IURI principalURI, IDirPrincipalList origPrincipalList, IDirPrincipalList newPrincipalList) throws PortalException
userID
- who did the changeprincipalURI
- the roleorigPrincipalList
- the original role membershipnewPrincipalList
- the new membershipPortalException
void fireRoleMembershipEvent(IThingID userID, IURI principalURI, IDirPrincipalList origPrincipalList, IDirPrincipalList newPrincipalList, int newAction) throws PortalException
userID
- who did the changeprincipalURI
- the roleorigPrincipalList
- the original role membershipnewPrincipalList
- the new membershipnewAction
- the actionPortalException
void fireGroupMembershipEvent(IThingID userID, IURI principalURI, IDirPrincipalList origPrincipalList, IDirPrincipalList newPrincipalList) throws PortalException
userID
- who did the changeprincipalURI
- the grouporigPrincipalList
- the original group membershipnewPrincipalList
- the new membershipPortalException
void fireGroupMembershipEvent(IThingID userID, IURI principalURI, IDirPrincipalList origPrincipalList, IDirPrincipalList newPrincipalList, int newAction) throws PortalException
userID
- who did the changeprincipalURI
- the grouporigPrincipalList
- the original group membershipnewPrincipalList
- the new membershipnewAction
- the actionPortalException
void fireDNUpdationEventEvent(String oldDN, String newDN, boolean isUpdationRequired) throws PortalException
oldDN
- the previous DNnewDN
- the new DNisUpdationRequired
- true or falsePortalException