|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentSecurity
Component security provides a way to check a user have enough rights to access a given object in a Silverpeas component instance. Each Silverpeas component should implements this interface according to the objects or resources it manages.
| Method Summary | |
|---|---|
void |
disableCache()
|
void |
enableCache()
|
boolean |
isAccessAuthorized(String componentId,
String userId,
String objectId)
Check if a user is authorized to access to a given object in a defined component. |
boolean |
isAccessAuthorized(String componentId,
String userId,
String objectId,
String objectType)
Check if a user is authorized to access to a given object in a defined component. |
boolean |
isObjectAvailable(String componentId,
String userId,
String objectId,
String objectType)
Check if a user is authorized to access to a given object in a defined component. |
| Method Detail |
|---|
boolean isAccessAuthorized(String componentId,
String userId,
String objectId)
componentId - - id of the componentuserId - - id of the userobjectId - - id of the object
boolean isAccessAuthorized(String componentId,
String userId,
String objectId,
String objectType)
componentId - - id of the componentuserId - - id of the userobjectId - - id of the objectobjectType - - type of the object (ex : PublicationDetail, NodeDetail...)
boolean isObjectAvailable(String componentId,
String userId,
String objectId,
String objectType)
componentId - - id of the componentuserId - - id of the userobjectId - - id of the objectobjectType - - type of the object (ex : PublicationDetail, NodeDetail...)
void enableCache()
void disableCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||