anderix.otcs
Class OtcsPermissions

java.lang.Object
  extended by anderix.otcs.OtcsPermissions

public class OtcsPermissions
extends java.lang.Object


Constructor Summary
OtcsPermissions()
           
 
Method Summary
 boolean canAddItems()
           
 boolean canDelete()
           
 boolean canDeleteVersions()
           
 boolean canEditAttributes()
           
 boolean canEditPermissions()
           
 boolean canModify()
           
 boolean canReserve()
           
 boolean canSee()
           
 boolean canSeeContents()
           
 java.lang.String getName()
           
 java.lang.String getName(OtcsClient otcs)
           
 java.lang.String getNameFormatted()
           
 java.lang.String getNameFormatted(OtcsClient otcs)
           
 long getRightId()
           
 java.lang.String[] getRights()
           
 java.lang.String getType()
           
 void lookupNameFromRightId(OtcsClient otcs, long rightId)
           
static OtcsPermissions[] parseOtcsPermissionsFromJson(java.lang.String json)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OtcsPermissions

public OtcsPermissions()
Method Detail

getRights

public java.lang.String[] getRights()

canSee

public boolean canSee()

canSeeContents

public boolean canSeeContents()

canModify

public boolean canModify()

canEditAttributes

public boolean canEditAttributes()

canAddItems

public boolean canAddItems()

canReserve

public boolean canReserve()

canDeleteVersions

public boolean canDeleteVersions()

canDelete

public boolean canDelete()

canEditPermissions

public boolean canEditPermissions()

getRightId

public long getRightId()

getName

public java.lang.String getName()

getName

public java.lang.String getName(OtcsClient otcs)
                         throws java.net.MalformedURLException,
                                java.io.IOException,
                                java.lang.Exception
Throws:
java.net.MalformedURLException
java.io.IOException
java.lang.Exception

getNameFormatted

public java.lang.String getNameFormatted()

getNameFormatted

public java.lang.String getNameFormatted(OtcsClient otcs)
                                  throws java.net.MalformedURLException,
                                         java.io.IOException,
                                         java.lang.Exception
Throws:
java.net.MalformedURLException
java.io.IOException
java.lang.Exception

getType

public java.lang.String getType()

lookupNameFromRightId

public void lookupNameFromRightId(OtcsClient otcs,
                                  long rightId)
                           throws java.net.MalformedURLException,
                                  java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException

parseOtcsPermissionsFromJson

public static OtcsPermissions[] parseOtcsPermissionsFromJson(java.lang.String json)
                                                      throws java.net.MalformedURLException,
                                                             java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException