com.wewebu.ow.server.dmsdialogs.views
Class OwPermissionsDocument
java.lang.Object
com.wewebu.ow.server.ui.OwEventTarget
com.wewebu.ow.server.ui.OwDocument
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
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 |
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 objectpermissions_p
- current permissions
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.