com.stratelia.webactiv.kmelia
Class KmeliaSecurity

java.lang.Object
  extended by com.stratelia.webactiv.kmelia.KmeliaSecurity
All Implemented Interfaces:
com.silverpeas.util.security.ComponentSecurity

public class KmeliaSecurity
extends Object
implements com.silverpeas.util.security.ComponentSecurity

Kmelia security provides a way to check the rights of a user to access the content of a Kmelia instance (publications, ...).


Field Summary
static String NODE_TYPE
           
static String PUBLICATION_TYPE
           
static String RIGHTS_ON_TOPIC_PARAM
           
 
Constructor Summary
KmeliaSecurity()
           
KmeliaSecurity(org.silverpeas.core.admin.OrganisationController controller)
           
 
Method Summary
 void disableCache()
           
 void enableCache()
           
 KmeliaBm getKmeliaBm()
           
 com.stratelia.webactiv.util.node.control.NodeBm getNodeBm()
           
 boolean isAccessAuthorized(String componentId, String userId, String objectId)
           
 boolean isAccessAuthorized(String componentId, String userId, String objectId, String objectType)
           
 boolean isCacheEnabled()
           
protected  boolean isCoWritingEnable(String componentId)
           
protected  boolean isDraftVisibleWithCoWriting()
           
protected  boolean isKmeliaObjectType(String objectType)
           
 boolean isObjectAvailable(String componentId, String userId, String objectId, String objectType)
           
protected  boolean isPublicationAvailable(com.stratelia.webactiv.util.publication.model.PublicationPK pk, String userId)
           
protected  boolean isRightsOnTopicsEnabled(String componentId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUBLICATION_TYPE

public static final String PUBLICATION_TYPE
See Also:
Constant Field Values

NODE_TYPE

public static final String NODE_TYPE
See Also:
Constant Field Values

RIGHTS_ON_TOPIC_PARAM

public static final String RIGHTS_ON_TOPIC_PARAM
See Also:
Constant Field Values
Constructor Detail

KmeliaSecurity

public KmeliaSecurity()

KmeliaSecurity

public KmeliaSecurity(org.silverpeas.core.admin.OrganisationController controller)
Method Detail

enableCache

public void enableCache()
Specified by:
enableCache in interface com.silverpeas.util.security.ComponentSecurity

disableCache

public void disableCache()
Specified by:
disableCache in interface com.silverpeas.util.security.ComponentSecurity

isAccessAuthorized

public boolean isAccessAuthorized(String componentId,
                                  String userId,
                                  String objectId)
Specified by:
isAccessAuthorized in interface com.silverpeas.util.security.ComponentSecurity

isAccessAuthorized

public boolean isAccessAuthorized(String componentId,
                                  String userId,
                                  String objectId,
                                  String objectType)
Specified by:
isAccessAuthorized in interface com.silverpeas.util.security.ComponentSecurity

isObjectAvailable

public boolean isObjectAvailable(String componentId,
                                 String userId,
                                 String objectId,
                                 String objectType)
Specified by:
isObjectAvailable in interface com.silverpeas.util.security.ComponentSecurity

isKmeliaObjectType

protected boolean isKmeliaObjectType(String objectType)

isRightsOnTopicsEnabled

protected boolean isRightsOnTopicsEnabled(String componentId)

isDraftVisibleWithCoWriting

protected boolean isDraftVisibleWithCoWriting()

isCoWritingEnable

protected boolean isCoWritingEnable(String componentId)

isPublicationAvailable

protected boolean isPublicationAvailable(com.stratelia.webactiv.util.publication.model.PublicationPK pk,
                                         String userId)

getNodeBm

public com.stratelia.webactiv.util.node.control.NodeBm getNodeBm()

getKmeliaBm

public KmeliaBm getKmeliaBm()

isCacheEnabled

public boolean isCacheEnabled()


Copyright © 2016 Silverpeas. All Rights Reserved.