com.openexchange.admin.console.context
Class ContextHostingAbstraction

java.lang.Object
  extended by com.openexchange.admin.console.BasicCommandlineOptions
      extended by com.openexchange.admin.console.ObjectNamingAbstraction
          extended by com.openexchange.admin.console.user.UserHostingAbstraction
              extended by com.openexchange.admin.console.context.ContextHostingAbstraction
Direct Known Subclasses:
DisableAll, EnableAll

public class ContextHostingAbstraction
extends UserHostingAbstraction

This class is used to abstract to context related attributes and methods which are only needed in the hosting part of Open-Xchange. This class is not only used to derive from it but it is also used as aggregation inside some object. So the public method are used through aggregation while the protected are used by inheritance.

Author:
d7

Field Summary
 
Fields inherited from class com.openexchange.admin.console.user.UserHostingAbstraction
ACCESS_COMBINATION_NAME_AND_ACCESS_RIGHTS_DETECTED_ERROR
 
Fields inherited from class com.openexchange.admin.console.BasicCommandlineOptions
SYSEXIT_COMMUNICATION_ERROR, SYSEXIT_CONTEXT_ALREADY_EXISTS, SYSEXIT_ILLEGAL_OPTION_VALUE, SYSEXIT_INVALID_CREDENTIALS, SYSEXIT_INVALID_DATA, SYSEXIT_MISSING_OPTION, SYSEXIT_NO_SUCH_CONTEXT, SYSEXIT_NO_SUCH_GROUP, SYSEXIT_NO_SUCH_RESOURCE, SYSEXIT_NO_SUCH_USER, SYSEXIT_REMOTE_ERROR, SYSEXIT_SERVERSTORAGE_ERROR, SYSEXIT_UNKNOWN_OPTION
 
Constructor Summary
ContextHostingAbstraction()
           
 
Method Summary
 void changeMappingSetting(OXContextInterface oxres, com.openexchange.admin.rmi.dataobjects.Context ctx, com.openexchange.admin.rmi.dataobjects.Credentials auth, boolean change)
           
 java.lang.Integer getFilestoreid()
           
 void parseAndSetAddLoginMapping(com.openexchange.admin.console.AdminParser parser)
           
 void parseAndSetRemoveLoginMapping(com.openexchange.admin.console.AdminParser parser)
           
 void setAddMappingOption(com.openexchange.admin.console.AdminParser parser, boolean required)
           
 void setRemoveMappingOption(com.openexchange.admin.console.AdminParser parser, boolean required)
           
 
Methods inherited from class com.openexchange.admin.console.user.UserHostingAbstraction
parseAndSetAccessCombinationName, setAddAccessRightCombinationNameOption
 
Methods inherited from class com.openexchange.admin.console.BasicCommandlineOptions
getEnvOptions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextHostingAbstraction

public ContextHostingAbstraction()
Method Detail

setAddMappingOption

public void setAddMappingOption(com.openexchange.admin.console.AdminParser parser,
                                boolean required)

setRemoveMappingOption

public void setRemoveMappingOption(com.openexchange.admin.console.AdminParser parser,
                                   boolean required)

parseAndSetRemoveLoginMapping

public void parseAndSetRemoveLoginMapping(com.openexchange.admin.console.AdminParser parser)

parseAndSetAddLoginMapping

public void parseAndSetAddLoginMapping(com.openexchange.admin.console.AdminParser parser)

changeMappingSetting

public void changeMappingSetting(OXContextInterface oxres,
                                 com.openexchange.admin.rmi.dataobjects.Context ctx,
                                 com.openexchange.admin.rmi.dataobjects.Credentials auth,
                                 boolean change)
                          throws java.rmi.RemoteException,
                                 com.openexchange.admin.rmi.exceptions.InvalidCredentialsException,
                                 com.openexchange.admin.rmi.exceptions.NoSuchContextException,
                                 com.openexchange.admin.rmi.exceptions.StorageException,
                                 com.openexchange.admin.rmi.exceptions.InvalidDataException
Throws:
java.rmi.RemoteException
com.openexchange.admin.rmi.exceptions.InvalidCredentialsException
com.openexchange.admin.rmi.exceptions.NoSuchContextException
com.openexchange.admin.rmi.exceptions.StorageException
com.openexchange.admin.rmi.exceptions.InvalidDataException

getFilestoreid

public final java.lang.Integer getFilestoreid()
Returns:
the filestoreid