|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a folder's access control list (ACL)
in Publisher. Any modifications to the IFolderACL
metadata will not be stored permanently until
store
is called.
Method Summary | |
void |
addEntry(IFolderACLEntry entry)
Adds a IFolderACLEntry to this folder's ACL. |
void |
addGroupEntry(int groupID,
RoleType role)
Adds a IFolderACLEntry to this folder's ACL. |
void |
addUserEntry(int userID,
RoleType role)
Adds a IFolderACLEntry to this folder's ACL |
IFolder |
getBelongingFolder()
Returns the folder associated with this IFolderACL . |
IFolderACLEntry[] |
getEntries()
Returns an array of IFolderACLEntry objects that make up this
FolderACL. |
IFolderACLEntry |
getEntry(int objectID,
MemberType type)
Returns an IFolderACLEntry corresponding to the given parameters. |
void |
removeEntry(IFolderACLEntry entry)
Removes a specific IFolderACLEntry . |
void |
removeGroupEntry(int groupID)
Removes a specific IFolderACLEntry . |
void |
removeUserEntry(int userID)
Removes a specific IFolderACLEntry . |
void |
store()
Stores the folder ACL. |
Method Detail |
public void addEntry(IFolderACLEntry entry)
IFolderACLEntry
to this folder's ACL.
entry
- the IFolderACLEntry
to add
to this folder's ACL
java.lang.IllegalArgumentException
- if the entry is invalidpublic void addGroupEntry(int groupID, RoleType role)
IFolderACLEntry
to this folder's ACL.
groupID
- the portal group ID to be added to this
IFolderACL
role
- the content server role for this group;
must be of type RoleType
ContentSecurityException
- if the IFolderACLEntry
does not exist on this IFolderACL
java.lang.IllegalArgumentException
- if the group id or role is invalidpublic void addUserEntry(int userID, RoleType role)
IFolderACLEntry
to this folder's ACL
userID
- the portal user ID to be added to this
IFolderACL
role
- the Publisher role for this user;
must be of type RoleType
ContentSecurityException
- if the IFolderACLEntry
does not exist on this IFolderACL
java.lang.IllegalArgumentException
- if the user ID or role is invalidpublic IFolder getBelongingFolder()
IFolderACL
.
IFolder
public IFolderACLEntry[] getEntries()
IFolderACLEntry
objects that make up this
FolderACL.
IFolderACLEntry
public IFolderACLEntry getEntry(int objectID, MemberType type) throws ContentSecurityException
IFolderACLEntry
corresponding to the given parameters.
objectID
- the portal object ID corresponding to the
user or group entry being requestedtype
- the MemberType
of the
entry
IFolderACLEntry
java.lang.IllegalArgumentException
- if the parameters are invalid
ContentSecurityException
public void removeEntry(IFolderACLEntry entry) throws ContentSecurityException
IFolderACLEntry
.
entry
- the IFolderACLEntry
to be
removed from this ACL
ContentSecurityException
- if the IFolderACLEntry
does not exist on this IFolderACL
java.lang.IllegalArgumentException
- if the entry is invalidpublic void removeGroupEntry(int groupID) throws ContentSecurityException
IFolderACLEntry
.
groupID
- the portal group ID to be removed from this
IFolderACL
ContentSecurityException
- if the IFolderACLEntry
does not exist on this IFolderACL
java.lang.IllegalArgumentException
- if the group ID is invalidpublic void removeUserEntry(int userID) throws ContentSecurityException
IFolderACLEntry
.
userID
- the portal user ID to be removed from this
IFolderACL
ContentSecurityException
- if the IFolderACLEntry
does not exist on this IFolderACL
java.lang.IllegalArgumentException
- if the user ID is invalidpublic void store() throws ContentSecurityException, NameAlreadyInUseException, ContentException, java.rmi.RemoteException
ContentSecurityException
- if the user does not have permission to
create a folder in the parent folder
NameAlreadyInUseException
- if there is already a folder in the
parent folder with the same name
ContentException
- if the an object ID was passed into the
ACL that does not exist in as a portal user or group, or the
method call resulted in a Publisher exception
java.rmi.RemoteException
- if there was a communication problem
during the execution of the remote method call
java.lang.IllegalStateException
- if the folder has been removed, or its
parent folder has been deleted or has not been stored, or
there was an attempt to associate the folder with a portlet
ID that was already associated with another folder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©2010 Oracle® Corporation. All Rights Reserved.