Skip navigation links

Oracle® WebCenter Content Java API Reference for Imaging
11g Release 1 (11.1.1)

E12853-03


oracle.imaging
Enum Document.Ability

java.lang.Object
  extended by java.lang.Enum<Document.Ability>
      extended by oracle.imaging.Document.Ability

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Document.Ability>
Enclosing class:
Document

public static enum Document.Ability
extends java.lang.Enum<Document.Ability>

Enumeration validating that the current user has this ability on the applications.

For example, to get a list of applications the current user can create documents in, Ability.VIEW enumeration should be specified in the DocumentService.listApplications method.


Enum Constant Summary
CREATEDOCUMENT
          Returns Applications the current user can create documents in.
VIEWDOCUMENT
          Returns all Applications for which the user has document view access

 

Method Summary
static Document.Ability valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Document.Ability[] 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

VIEWDOCUMENT

public static final Document.Ability VIEWDOCUMENT
Returns all Applications for which the user has document view access

CREATEDOCUMENT

public static final Document.Ability CREATEDOCUMENT
Returns Applications the current user can create documents in.

Method Detail

values

public static Document.Ability[] 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 (Document.Ability c : Document.Ability.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Document.Ability valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

Skip navigation links

Oracle® WebCenter Content Java API Reference for Imaging
11g Release 1 (11.1.1)

E12853-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.