|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UniverseSecurityCache
Object used to manage a universe security profiles definition and assignments:
getDataSecurityProfiles()
and getBusinessSecurityProfiles()
.getPrincipals(SecurityProfile)
.A UniverseSecurityCache
object can be retrieved by calling the method CmsSecurityService.getUniverseSecurityCache(String)
.
CmsSecurityService#getUniverseSecurityCache(String)}
,
DataSecurityProfile}
,
BusinessSecurityProfile}
,
Principal}
Method Summary | |
---|---|
void |
close()
Closes the UniverseSecurityCache once it is no longer in use. |
IStatus |
commit()
|
java.util.List<BusinessSecurityProfile> |
getBusinessSecurityProfiles()
|
java.util.List<DataSecurityProfile> |
getDataSecurityProfiles()
|
java.util.List<Principal> |
getPrincipals(SecurityProfile securityProfile)
|
java.lang.String |
getUniversePath()
Get the path of the universe in the CMS. |
Method Detail |
---|
java.util.List<DataSecurityProfile> getDataSecurityProfiles() throws SlException
Get the data security profiles attached to the universe.
Note that if a data security profile from this list is added to another list of data security profiles, it is removed from the former.
DataSecurityProfile
attached to the universe.
SlException
- if the universe security cache is closed.DataSecurityProfile}
java.util.List<BusinessSecurityProfile> getBusinessSecurityProfiles() throws SlException
Get the business security profiles attached to the universe.
Note that if a business security profile from this list is added to another list of business security profiles, it is removed from the former.
BusinessSecurityProfile
attached to the universe.
SlException
- if the universe security cache is closed.BusinessSecurityProfile}
java.util.List<Principal> getPrincipals(SecurityProfile securityProfile) throws SlException
Get the list of principals (users or groups) assigned to the specified security profile.
Note that if a principal from this list is added to another list of principals, it is removed from the former.
securityProfile
- DataSecurityProfile
or BusinessSecurityProfile
to get the assigned principals of.
Principal
assigned to the security profile.
SlException
- if the universe security cache is closed.Principal}
IStatus commit() throws SlException
Commit the content of the universe security cache to the CMS.
Any external modification done to the universe security will be overwritten by the content of the universe security cache.
IStatus
object containing the status of the commit.
The IStatus
severity is Severity.OK
if no error occurred. If errors occurred, the IStatus
attached to the SlException
thrown contains the details about the errors.
SlException
- in the following cases:
void close() throws SlException
UniverseSecurityCache
once it is no longer in use.
SlException
java.lang.String getUniversePath()
String
that represents the path of the universe in the CMS repository, from the Universes root folder. See CmsResourceService.UNIVERSES_ROOT
.
Example: /Universes/myCmsFolder/MyUniverse.unx
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |