com.wewebu.ow.server.ui.viewer
Enum OwDocInfoEnum

java.lang.Object
  extended by java.lang.Enum<OwDocInfoEnum>
      extended by com.wewebu.ow.server.ui.viewer.OwDocInfoEnum
All Implemented Interfaces:
Serializable, Comparable<OwDocInfoEnum>

public enum OwDocInfoEnum
extends Enum<OwDocInfoEnum>

Enum for handling of OwInforProvider implementation. Represents just the objects which can be send from viewer to request information of a document.

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

Enum Constant Summary
HAS_EXTERNAL_RESOURCES
          Has the document external resources, specific for MO:DCA(AFP, IOCA) content type
HAS_PERM_TO_CANCEL_CHECKOUT
          Can current user permission to cancel checkout
HAS_PERM_TO_CHECKIN
          Has permission/Can current user to check-in the document
HAS_PERM_TO_CHECKOUT
          Has permission/Can user check-out document
HAS_PERM_TO_COPY
          Can current user copy content
HAS_PERM_TO_CREATE_ANNOTATIONS
          Has current user permission to add the annotations on this document
HAS_PERM_TO_CREATE_DOCUMENT
          Has current user permission to create instance of the document
HAS_PERM_TO_EXPORT
          Has current user permission to save/export the document content to local system
HAS_PERM_TO_MOD
          Has permission to modify content (not Annotation)
HAS_PERM_TO_PRINT
          Has current user permission to print the document
HAS_PERM_TO_UPDATE_ANNOTATIONS
          Has current user permission to update the annotations linked with this document
HAS_PERM_TO_VIEW
          Has current user permission to view the document content
HAS_PERM_TO_VIEW_ANNOTATIONS
          Has current user permission to view the annotations linked with this document
IS_CHECKOUT
          Is checkout
IS_VERSIONABLE
          Is versionable
NUMBER_OF_PAGES_IN_SEGMENT
          Number of pages in a segment, this constant has no meaning when number of segment is 1
NUMBER_OF_PARENTS
          Number of parents the document has, default is 0
NUMBER_OF_SEGMENTS
          Number of segments in the document, default is 1
 
Method Summary
static OwDocInfoEnum getEnumFromName(String name)
          Will search for an entry with given name.
 String getName()
           
static OwDocInfoEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OwDocInfoEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HAS_EXTERNAL_RESOURCES

public static final OwDocInfoEnum HAS_EXTERNAL_RESOURCES
Has the document external resources, specific for MO:DCA(AFP, IOCA) content type


HAS_PERM_TO_CHECKIN

public static final OwDocInfoEnum HAS_PERM_TO_CHECKIN
Has permission/Can current user to check-in the document


HAS_PERM_TO_CHECKOUT

public static final OwDocInfoEnum HAS_PERM_TO_CHECKOUT
Has permission/Can user check-out document


HAS_PERM_TO_CANCEL_CHECKOUT

public static final OwDocInfoEnum HAS_PERM_TO_CANCEL_CHECKOUT
Can current user permission to cancel checkout


HAS_PERM_TO_COPY

public static final OwDocInfoEnum HAS_PERM_TO_COPY
Can current user copy content


HAS_PERM_TO_CREATE_ANNOTATIONS

public static final OwDocInfoEnum HAS_PERM_TO_CREATE_ANNOTATIONS
Has current user permission to add the annotations on this document


HAS_PERM_TO_EXPORT

public static final OwDocInfoEnum HAS_PERM_TO_EXPORT
Has current user permission to save/export the document content to local system


HAS_PERM_TO_PRINT

public static final OwDocInfoEnum HAS_PERM_TO_PRINT
Has current user permission to print the document


HAS_PERM_TO_UPDATE_ANNOTATIONS

public static final OwDocInfoEnum HAS_PERM_TO_UPDATE_ANNOTATIONS
Has current user permission to update the annotations linked with this document


HAS_PERM_TO_VIEW_ANNOTATIONS

public static final OwDocInfoEnum HAS_PERM_TO_VIEW_ANNOTATIONS
Has current user permission to view the annotations linked with this document


HAS_PERM_TO_VIEW

public static final OwDocInfoEnum HAS_PERM_TO_VIEW
Has current user permission to view the document content


HAS_PERM_TO_CREATE_DOCUMENT

public static final OwDocInfoEnum HAS_PERM_TO_CREATE_DOCUMENT
Has current user permission to create instance of the document


NUMBER_OF_PAGES_IN_SEGMENT

public static final OwDocInfoEnum NUMBER_OF_PAGES_IN_SEGMENT
Number of pages in a segment, this constant has no meaning when number of segment is 1


NUMBER_OF_SEGMENTS

public static final OwDocInfoEnum NUMBER_OF_SEGMENTS
Number of segments in the document, default is 1


NUMBER_OF_PARENTS

public static final OwDocInfoEnum NUMBER_OF_PARENTS
Number of parents the document has, default is 0


IS_CHECKOUT

public static final OwDocInfoEnum IS_CHECKOUT
Is checkout


IS_VERSIONABLE

public static final OwDocInfoEnum IS_VERSIONABLE
Is versionable


HAS_PERM_TO_MOD

public static final OwDocInfoEnum HAS_PERM_TO_MOD
Has permission to modify content (not Annotation)

Method Detail

values

public static OwDocInfoEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OwDocInfoEnum c : OwDocInfoEnum.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OwDocInfoEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getName

public String getName()

getEnumFromName

public static OwDocInfoEnum getEnumFromName(String name)
Will search for an entry with given name.

Parameters:
name - String matching name of entry
Returns:
OwDocInfoEnum or null if not found


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.