com.wewebu.ow.server.dmsdialogs.views
Class OwPrivilegesDocument

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwEventTarget
      extended by com.wewebu.ow.server.ui.OwDocument
          extended by com.wewebu.ow.server.dmsdialogs.views.OwPrivilegesDocument
All Implemented Interfaces:
OwAttributeBag, OwAttributeBagWriteable

public class OwPrivilegesDocument
extends OwDocument

OwPermissionCollection privilege facade document for OwPrivilegesView

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
3.2.0.0

Field Summary
 
Fields inherited from class com.wewebu.ow.server.ui.OwDocument
m_ViewList
 
Constructor Summary
OwPrivilegesDocument(OwPermissionsDocument permissionsDocument_p, Map<String,String> privilegeDisplayNames_p)
           
 
Method Summary
 OwPrivilegeSet addPrivilegeSet(OwUserInfo principal_p, Collection privileges_p, boolean deny_p, int inheritancedepth_p)
           
 String displayNameOf(OwPrivilege privilege_p)
           
 Collection<OwPrivilegeSet> getAppliedPrivilegeSets()
           
 Collection<OwPrivilege> getAvailablePrivileges(OwUserInfo principal_p)
           
 OwObject getObject()
           
protected  OwPermissionCollection getPermissions()
           
protected  OwPermissionsDocument getPermissionsDocument()
           
static String guidToPrivilege(String guid_p)
           
static String privilegeToGuid(OwPrivilege privilege_p)
           
static String privilegeToGuid(String privilegeName_p)
           
 void removePrivilegeSet(OwPrivilegeSet privilegeSet_p)
           
 
Methods inherited from class com.wewebu.ow.server.ui.OwDocument
attachView, attributecount, clear, detachView, getAttribute, getAttribute, getAttributeNames, getPersistentAttributeBagWriteable, getSafeAttribute, hasAttribute, init, remove, save, setAttribute, update
 
Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget
attach, detach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getFormName, getFormTarget, getID, onExternalRequest, onFormEvent, onRequest, setExternalFormTarget, updateExternalFormTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwPrivilegesDocument

public OwPrivilegesDocument(OwPermissionsDocument permissionsDocument_p,
                            Map<String,String> privilegeDisplayNames_p)
Method Detail

guidToPrivilege

public static final String guidToPrivilege(String guid_p)
                                    throws OwInvalidOperationException
Throws:
OwInvalidOperationException

privilegeToGuid

public static final String privilegeToGuid(OwPrivilege privilege_p)

privilegeToGuid

public static final String privilegeToGuid(String privilegeName_p)

getPermissions

protected OwPermissionCollection getPermissions()

getPermissionsDocument

protected OwPermissionsDocument getPermissionsDocument()

getObject

public OwObject getObject()

getAppliedPrivilegeSets

public Collection<OwPrivilegeSet> getAppliedPrivilegeSets()

removePrivilegeSet

public void removePrivilegeSet(OwPrivilegeSet privilegeSet_p)
                        throws OwException
Throws:
OwException

displayNameOf

public String displayNameOf(OwPrivilege privilege_p)

getAvailablePrivileges

public Collection<OwPrivilege> getAvailablePrivileges(OwUserInfo principal_p)

addPrivilegeSet

public OwPrivilegeSet addPrivilegeSet(OwUserInfo principal_p,
                                      Collection privileges_p,
                                      boolean deny_p,
                                      int inheritancedepth_p)
                               throws OwException
Throws:
OwException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.