|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.sdk.common.DKAccessControlDD
DKAccessControlDD : This class represents and processes datastore access control functions.
Fields inherited from interface com.ibm.mm.sdk.common.DKConstant |
For details, see the class or interface |
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageIdDD |
copyright, DK_DD_MSG_MSGID_DOMDOC, DK_DD_MSG_MSGID_GOVERNOR, DK_DD_MSG_MSGID_NO_ATTR_OBJ, DK_DD_MSG_MSGID_NO_BINDER_OBJ, DK_DD_MSG_MSGID_NO_CABINET_OBJ, DK_DD_MSG_MSGID_NO_DOCUMENT_OBJ, DK_DD_MSG_MSGID_NO_MESSAGE, DK_DD_MSG_MSGID_NO_ROOM_OBJ, DK_DD_MSG_MSGID_NO_SUCCESS, DK_DD_MSG_MSGID_NUL_PARAM |
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId |
For details, see the class or interface |
Constructor Summary | |
DKAccessControlDD(dkDatastore ds)
Constructs the access control and initializes it with the datastore. |
Method Summary | |
void |
addAccessControlList(java.lang.String acl_name,
java.lang.String description,
dkCollection access_data)
Adds an access control list in DD |
void |
deleteAccessControlList(java.lang.String acl_name)
Deletes an access control list from DD |
dkDatastore |
getDatastore()
Gets the reference to the owner datastore object |
java.lang.String |
getItemACL(java.lang.String itemID)
Gets the ACL of the specified item ID |
java.lang.String |
getName()
Gets name of the access control |
boolean |
isAccessControlList(java.lang.String acl_name)
Determines if the specified name is an access control list |
boolean |
isAuthorized(java.lang.String privilege_string,
int authority)
Determines if the specified authority is granted for the given privilege string |
boolean |
isGroup(java.lang.String group_name)
Determines if the specified name is a group name |
boolean |
isPrivilege(java.lang.String privilege_name)
Determines if the specified name is a privilege name |
boolean |
isUser(java.lang.String user_name)
Determines if the specified name is a group name |
DKAccessControlListDD |
listAccessControlList(java.lang.String acl_name)
Lists a DKAccessControlListDD object based on the specified acl name |
dkCollection |
listAccessControlLists()
Lists all the access control lists in DD |
dkCollection |
listGroups()
Lists all the groups in DD |
dkCollection |
listGroups(java.lang.String user_name)
Lists all the groups which a specified user is part of |
java.lang.String |
listPrivilege(java.lang.String user_name)
Lists all the privilege name of the specific user in DD |
dkCollection |
listPrivileges()
Lists all the privileges in DD |
java.lang.String |
listPrivilegeString(java.lang.String privilege_name)
Lists the privilege bit string of the specified privilege |
dkCollection |
listUsers()
Lists all the users in DD |
dkCollection |
listUsers(java.lang.String group_name)
Lists all the users in a specified group |
void |
setDatastore(dkDatastore ds)
Sets the reference to the owner datastore object |
void |
setItemACL(java.lang.String itemID,
java.lang.String acl_name)
Sets the ACL of the specified item ID |
void |
setName(java.lang.String access_control_name)
Sets name of the access control |
java.lang.String |
type()
Gets type of the access control |
void |
updateAccessControlList(java.lang.String acl_name,
java.lang.String description,
dkCollection access_data)
Updates an access control list in DD |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DKAccessControlDD(dkDatastore ds) throws DKException
Method Detail |
public void setDatastore(dkDatastore ds) throws java.lang.Exception
setDatastore
in interface dkAccessControl
public dkDatastore getDatastore() throws java.lang.Exception
getDatastore
in interface dkAccessControl
public java.lang.String type() throws java.lang.Exception
type
in interface dkAccessControl
public java.lang.String getName() throws java.lang.Exception
getName
in interface dkAccessControl
public void setName(java.lang.String access_control_name) throws java.lang.Exception
setName
in interface dkAccessControl
access_control_name
- access control namepublic void addAccessControlList(java.lang.String acl_name, java.lang.String description, dkCollection access_data) throws DKException, java.lang.Exception
addAccessControlList
in interface dkAccessControl
acl_name
- the name of a new access control listdescription
- the desctiption of a new access cntrol listaccess_data
- a collection of access datapublic void updateAccessControlList(java.lang.String acl_name, java.lang.String description, dkCollection access_data) throws DKException, java.lang.Exception
updateAccessControlList
in interface dkAccessControl
acl_name
- the name of an existing access control listdescription
- the desctiption of an existing access cntrol listaccess_data
- a collection of access datapublic void deleteAccessControlList(java.lang.String acl_name) throws DKException, java.lang.Exception
deleteAccessControlList
in interface dkAccessControl
acl_name
- the name of an existing access control listpublic dkCollection listAccessControlLists() throws DKException, java.lang.Exception
listAccessControlLists
in interface dkAccessControl
public DKAccessControlListDD listAccessControlList(java.lang.String acl_name) throws DKException, java.lang.Exception
acl_name
- the name of an access control listpublic java.lang.String getItemACL(java.lang.String itemID) throws DKException, java.lang.Exception
itemID
- the name of an item IDpublic void setItemACL(java.lang.String itemID, java.lang.String acl_name) throws DKException, java.lang.Exception
itemID
- the name of an item IDacl_name
- the name of an access control listpublic dkCollection listPrivileges() throws DKException, java.lang.Exception
listPrivileges
in interface dkAccessControl
public java.lang.String listPrivilege(java.lang.String user_name) throws DKException, java.lang.Exception
public dkCollection listUsers() throws DKException, java.lang.Exception
listUsers
in interface dkAccessControl
public dkCollection listUsers(java.lang.String group_name) throws DKException, java.lang.Exception
public dkCollection listGroups() throws DKException, java.lang.Exception
listGroups
in interface dkAccessControl
public dkCollection listGroups(java.lang.String user_name) throws DKException, java.lang.Exception
public boolean isAuthorized(java.lang.String privilege_string, int authority) throws DKException, java.lang.Exception
public boolean isAccessControlList(java.lang.String acl_name) throws DKException, java.lang.Exception
public boolean isPrivilege(java.lang.String privilege_name) throws DKException, java.lang.Exception
public boolean isUser(java.lang.String user_name) throws DKException, java.lang.Exception
public boolean isGroup(java.lang.String group_name) throws DKException, java.lang.Exception
public java.lang.String listPrivilegeString(java.lang.String privilege_name) throws DKException, java.lang.Exception
listPrivilegeString
in interface dkAccessControl
|
EIP Java APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |