/** * Gets the display name of the folder. * * @return the display name * @throws ServiceLocalException the service local exception */ public String getDisplayName() throws ServiceLocalException { return getPropertyBag().getObjectFromPropertyDefinition( FolderSchema.DisplayName); }
/** * Gets the custom class name of this folder. * * @return the folder class * @throws ServiceLocalException the service local exception */ public String getFolderClass() throws ServiceLocalException { return getPropertyBag().getObjectFromPropertyDefinition( FolderSchema.FolderClass); }
/** * Gets a value indicating the effective rights the current authenticated * user has on the folder. * * @return the effective rights * @throws ServiceLocalException the service local exception */ public EnumSet<EffectiveRights> getEffectiveRights() throws ServiceLocalException { return getPropertyBag().getObjectFromPropertyDefinition( FolderSchema.EffectiveRights); }
/** * Sets the display name of the folder. * * @param value Name of the folder * @throws Exception the exception */ public void setDisplayName(String value) throws Exception { this.getPropertyBag().setObjectFromPropertyDefinition( FolderSchema.DisplayName, value); }
/** * Gets the Email Lifecycle Management (ELC) information associated with the * folder. * * @return the managed folder information * @throws ServiceLocalException the service local exception */ public ManagedFolderInformation getManagedFolderInformation() throws ServiceLocalException { return getPropertyBag().getObjectFromPropertyDefinition( FolderSchema.ManagedFolderInformation); }
/** * Gets the Id of this folder's parent folder. * * @return the parent folder id * @throws ServiceLocalException the service local exception */ public FolderId getParentFolderId() throws ServiceLocalException { return getPropertyBag().getObjectFromPropertyDefinition( FolderSchema.ParentFolderId); }
/** * Gets a list of extended property associated with the folder. * * @return the extended property for service * @throws ServiceLocalException the service local exception */ // changed the name of method as another method with same name exists public ExtendedPropertyCollection getExtendedPropertiesForService() throws ServiceLocalException { return getPropertyBag().getObjectFromPropertyDefinition( ServiceObjectSchema.extendedProperties); }
/** * Sets the custom class name of this folder. * * @param value name of the folder * @throws Exception the exception */ public void setFolderClass(String value) throws Exception { this.getPropertyBag().setObjectFromPropertyDefinition( FolderSchema.FolderClass, value); }
/** * Gets a list of permissions for the folder. * * @return the permissions * @throws ServiceLocalException the service local exception */ public FolderPermissionCollection getPermissions() throws ServiceLocalException { return getPropertyBag().getObjectFromPropertyDefinition( FolderSchema.Permissions); }
/** * Gets the total number of item contained in the folder. * * @return the total count * @throws NumberFormatException the number format exception * @throws ServiceLocalException the service local exception */ public int getTotalCount() throws NumberFormatException, ServiceLocalException { return (Integer.parseInt(this.getPropertyBag() .getObjectFromPropertyDefinition(FolderSchema.TotalCount) .toString())); }
/** * Gets the number of child folder this folder has. * * @return the child folder count * @throws NumberFormatException the number format exception * @throws ServiceLocalException the service local exception */ public int getChildFolderCount() throws NumberFormatException, ServiceLocalException { return (Integer.parseInt(this.getPropertyBag() .getObjectFromPropertyDefinition(FolderSchema.ChildFolderCount) .toString())); }
/** * Gets the number of unread item in the folder. * * @return the unread count * @throws NumberFormatException the number format exception * @throws ServiceLocalException the service local exception */ public int getUnreadCount() throws NumberFormatException, ServiceLocalException { return (Integer.parseInt(this.getPropertyBag() .getObjectFromPropertyDefinition(FolderSchema.UnreadCount) .toString())); }
/** * Gets the Id of the folder. * * @return the id */ public FolderId getId() { try { return getPropertyBag().getObjectFromPropertyDefinition( getIdPropertyDefinition()); } catch (ServiceLocalException e) { LOG.error(e); return null; } }
/** * Validates this instance. * * @throws Exception the exception */ @Override public void validate() throws Exception { super.validate(); // Validate folder permissions try { if (this.getPropertyBag().contains(FolderSchema.Permissions)) { this.getPermissions().validate(); } } catch (ServiceLocalException e) { LOG.error(e); } }
/** * Applies the local changes that have been made to this folder. Calling * this method results in a call to EWS. * * @throws Exception the exception */ public void update() throws Exception { if (this.isDirty()) { if (this.getPropertyBag().getIsUpdateCallNecessary()) { this.getService().updateFolder(this); } } }
/** * Gets the display name of the folder. * * @return the display name * @throws ServiceLocalException the service local exception */ public String getDisplayName() throws ServiceLocalException { return getPropertyBag().getObjectFromPropertyDefinition( FolderSchema.DisplayName); }
/** * Sets the custom class name of this folder. * * @param value name of the folder * @throws Exception the exception */ public void setFolderClass(String value) throws Exception { this.getPropertyBag().setObjectFromPropertyDefinition( FolderSchema.FolderClass, value); }
/** * Gets a list of extended property associated with the folder. * * @return the extended property for service * @throws ServiceLocalException the service local exception */ // changed the name of method as another method with same name exists public ExtendedPropertyCollection getExtendedPropertiesForService() throws ServiceLocalException { return getPropertyBag().getObjectFromPropertyDefinition( ServiceObjectSchema.extendedProperties); }
/** * Gets the custom class name of this folder. * * @return the folder class * @throws ServiceLocalException the service local exception */ public String getFolderClass() throws ServiceLocalException { return getPropertyBag().getObjectFromPropertyDefinition( FolderSchema.FolderClass); }
/** * Gets the Id of the folder. * * @return the id */ public FolderId getId() { try { return getPropertyBag().getObjectFromPropertyDefinition( getIdPropertyDefinition()); } catch (ServiceLocalException e) { LOG.error(e); return null; } }