|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
org.silverpeas.attachment.web.VersioningSessionController
public class VersioningSessionController
| Field Summary | |
|---|---|
static String |
ADMIN
|
static String |
PUBLISHER
|
static String |
READER
|
static String |
WRITER
|
| Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
|---|
CHARACTER_ENCODING, context |
| Constructor Summary | |
|---|---|
VersioningSessionController(MainSessionController mainSessionCtrl,
ComponentContext componentContext)
Constructor |
|
| Method Summary | |
|---|---|
ProfileInst |
getComponentProfile(String role)
|
String |
getContentLanguage()
|
ProfileInst |
getCurrentProfile(String role)
|
SimpleDocument |
getDocument(SimpleDocumentPK documentPK)
to get document from DB |
List<SimpleDocument> |
getDocumentVersions(SimpleDocumentPK documentPK)
To get all versions of document. |
ProfileInst |
getInheritedProfile(String role)
|
NodeBm |
getNodeBm()
|
String |
getProfile()
|
List<SimpleDocument> |
getPublicDocumentVersions(SimpleDocumentPK documentPK)
To get only public versions of document (according to the content language). |
ProfileInst |
getTopicProfile(String role,
String topicId)
|
boolean |
isAdmin(String userId)
Checks if the specified userId is admin for the current component. |
boolean |
isReader(SimpleDocument document,
String userId)
|
boolean |
isUserInRole(String userId,
SilverpeasRole role)
|
boolean |
isWriter(SimpleDocument document,
String userId)
|
void |
setComponentId(String compomentId)
|
void |
setContentLanguage(String contentLanguage)
|
void |
setEditingDocument(SimpleDocument document)
Store in controller the current edited document. |
void |
setProfile(String profile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ADMIN
public static final String PUBLISHER
public static final String READER
public static final String WRITER
| Constructor Detail |
|---|
public VersioningSessionController(MainSessionController mainSessionCtrl,
ComponentContext componentContext)
mainSessionCtrl - componentContext - | Method Detail |
|---|
public void setComponentId(String compomentId)
public String getProfile()
public void setProfile(String profile)
public SimpleDocument getDocument(SimpleDocumentPK documentPK)
documentPK -
public List<SimpleDocument> getDocumentVersions(SimpleDocumentPK documentPK)
documentPK -
public List<SimpleDocument> getPublicDocumentVersions(SimpleDocumentPK documentPK)
documentPK -
public void setEditingDocument(SimpleDocument document)
document - public String getContentLanguage()
public void setContentLanguage(String contentLanguage)
public boolean isReader(SimpleDocument document,
String userId)
throws RemoteException
document - userId -
RemoteExceptionpublic boolean isAdmin(String userId)
userId - the unique id of the user checked for admin role.
public boolean isUserInRole(String userId,
SilverpeasRole role)
public boolean isWriter(SimpleDocument document,
String userId)
throws RemoteException
document - userId -
RemoteExceptionpublic NodeBm getNodeBm()
public ProfileInst getComponentProfile(String role)
role -
public ProfileInst getCurrentProfile(String role)
throws RemoteException
role -
RemoteException
public ProfileInst getInheritedProfile(String role)
throws RemoteException
RemoteException
public ProfileInst getTopicProfile(String role,
String topicId)
role - topicId -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||