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

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.OwPermissionsDocument
All Implemented Interfaces:
OwAttributeBag, OwAttributeBagWriteable

public class OwPermissionsDocument
extends OwDocument

OwPermissionCollection facade document. Keeps track of the target object (object owner of the edited/viewed permissions) and the current permissions (viewed or edited).

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:
4.0.0.0

Field Summary
 
Fields inherited from class com.wewebu.ow.server.ui.OwDocument
m_ViewList
 
Constructor Summary
OwPermissionsDocument(OwObject object_p)
          Constructor.
OwPermissionsDocument(OwObject object_p, OwPermissionCollection permissions_p)
          Constructor
 
Method Summary
 OwObject getObject()
           
 OwPermissionCollection getPermissions()
           
 void savePermissions()
          Saves the current permissions to the target object (see OwObject.setPermissions(OwPermissionCollection)).
 
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

OwPermissionsDocument

public OwPermissionsDocument(OwObject object_p)
                      throws OwException
Constructor. Object's permissions are the current permissions.

Parameters:
object_p -
Throws:
OwException

OwPermissionsDocument

public OwPermissionsDocument(OwObject object_p,
                             OwPermissionCollection permissions_p)
Constructor

Parameters:
object_p - target object
permissions_p - current permissions
Method Detail

savePermissions

public void savePermissions()
                     throws OwException
Saves the current permissions to the target object (see OwObject.setPermissions(OwPermissionCollection)). Before returning the permissions are reloaded (see see OwObject.getPermissions()).

Throws:
OwException

getObject

public OwObject getObject()
Returns:
the target OwObject

getPermissions

public OwPermissionCollection getPermissions()
Returns:
the current permissions


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.