|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccessControlService
Method Summary | |
---|---|
AccessControlList |
getACL(DeepaMehtaObject object)
Returns the Access Control List of a topic or an association. |
Permissions |
getAssociationPermissions(long assocId)
|
Collection<Association> |
getAssociationsByCreator(String username)
|
Collection<Association> |
getAssociationsByOwner(String username)
|
String |
getCreator(DeepaMehtaObject object)
Returns the creator of a topic or an association. |
String |
getOwner(DeepaMehtaObject object)
Returns the owner of a topic or an association. |
Permissions |
getTopicPermissions(long topicId)
|
Collection<Topic> |
getTopicsByCreator(String username)
|
Collection<Topic> |
getTopicsByOwner(String username)
|
String |
getUsername()
Returns the username of the logged in user. |
Topic |
getUsername(String username)
Returns the "Username" topic for the specified username. |
void |
joinWorkspace(String username,
long workspaceId)
|
void |
joinWorkspace(Topic username,
long workspaceId)
|
void |
login()
Checks weather the credentials in the authorization string match an existing User Account, and if so, creates an HTTP session. |
void |
logout()
Logs the user out. |
void |
setACL(DeepaMehtaObject object,
AccessControlList acl)
Sets the Access Control List for a topic or an association. |
void |
setCreator(DeepaMehtaObject object,
String username)
Sets the creator of a topic or an association. |
void |
setOwner(DeepaMehtaObject object,
String username)
Sets the owner of a topic or an association. |
Method Detail |
---|
void login()
authHeader
- the authorization string containing the credentials. ### FIXDOC
Formatted like a "Authorization" HTTP header value. That is, "Basic " appended by the
Base64 encoded form of "{username}:{password}".void logout()
String getUsername()
null
if no user is logged in.Topic getUsername(String username)
dm4.accesscontrol.username
),
or null
if no such username exists.Permissions getTopicPermissions(long topicId)
Permissions getAssociationPermissions(long assocId)
String getCreator(DeepaMehtaObject object)
null
if no creator is set.void setCreator(DeepaMehtaObject object, String username)
String getOwner(DeepaMehtaObject object)
null
if no owner is set.void setOwner(DeepaMehtaObject object, String username)
AccessControlList getACL(DeepaMehtaObject object)
void setACL(DeepaMehtaObject object, AccessControlList acl)
void joinWorkspace(String username, long workspaceId)
void joinWorkspace(Topic username, long workspaceId)
Collection<Topic> getTopicsByCreator(String username)
Collection<Topic> getTopicsByOwner(String username)
Collection<Association> getAssociationsByCreator(String username)
Collection<Association> getAssociationsByOwner(String username)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |