Class AbstractApplicationImpl

java.lang.Object
org.bonitasoft.engine.bpm.internal.BaseElementImpl
org.bonitasoft.engine.business.application.impl.AbstractApplicationImpl
All Implemented Interfaces:
Serializable, BaseElement, BonitaObject, IApplication
Direct Known Subclasses:
ApplicationImpl, ApplicationLinkImpl

public abstract class AbstractApplicationImpl extends BaseElementImpl implements IApplication
Contains the meta information of a Bonita Living Application.
See Also:
  • Constructor Details

    • AbstractApplicationImpl

      protected AbstractApplicationImpl(String token, String version, String description)
  • Method Details

    • getVisibility

      public ApplicationVisibility getVisibility()
      Description copied from interface: IApplication
      Retrieves the visibility of the Application. Possible values are: ALL - everyone can use the application TECHNICAL_USER - Only the technical user can use the application RESTRICTED - Access to the application is determined by the user profile These value are purely indicative, changing them in the application object won't change the accessibility to the the actual application
      Specified by:
      getVisibility in interface IApplication
      Returns:
      the enum ApplicationVisibility of the application
    • setVisibility

      public void setVisibility(ApplicationVisibility visibility)
    • getToken

      public String getToken()
      Description copied from interface: IApplication
      Retrieves the Application token
      Specified by:
      getToken in interface IApplication
      Returns:
      the Application token
    • getDisplayName

      public String getDisplayName()
      Description copied from interface: IApplication
      Retrieves the Application display name
      Specified by:
      getDisplayName in interface IApplication
      Returns:
      the Application display name
    • setDisplayName

      public void setDisplayName(String displayName)
    • getDescription

      public String getDescription()
      Description copied from interface: IApplication
      Retrieves the Application description
      Specified by:
      getDescription in interface IApplication
      Returns:
      the Application description
    • getVersion

      public String getVersion()
      Description copied from interface: IApplication
      Retrieves the Application version
      Specified by:
      getVersion in interface IApplication
      Returns:
      the Application version
    • getIconPath

      public String getIconPath()
      Description copied from interface: IApplication
      Retrieves the icon path of this Application
      Specified by:
      getIconPath in interface IApplication
      Returns:
      the icon path of this Application
    • setIconPath

      public void setIconPath(String iconPath)
    • getCreationDate

      public Date getCreationDate()
      Description copied from interface: IApplication
      Retrieves the Application creation date
      Specified by:
      getCreationDate in interface IApplication
      Returns:
      the Application creation date
    • setCreationDate

      public void setCreationDate(Date creationDate)
    • getCreatedBy

      public long getCreatedBy()
      Description copied from interface: IApplication
      Retrieves the identifier of the user that created this Application
      Specified by:
      getCreatedBy in interface IApplication
      Returns:
      the identifier of the user that created this Application
    • setCreatedBy

      public void setCreatedBy(long createdBy)
    • getLastUpdateDate

      public Date getLastUpdateDate()
      Description copied from interface: IApplication
      Retrieves the Application last updated date
      Specified by:
      getLastUpdateDate in interface IApplication
      Returns:
      the Application last updated date
    • setLastUpdateDate

      public void setLastUpdateDate(Date lastUpdateDate)
    • getUpdatedBy

      public long getUpdatedBy()
      Description copied from interface: IApplication
      Retrieves the identifier of the user that updated this Application
      Specified by:
      getUpdatedBy in interface IApplication
      Returns:
      the identifier of the user that updated this Application
    • setUpdatedBy

      public void setUpdatedBy(long updatedBy)
    • getState

      public String getState()
      Description copied from interface: IApplication
      Retrieves the Application state. The possible values are ApplicationState.ACTIVATED and ApplicationState.DEACTIVATED
      Specified by:
      getState in interface IApplication
      Returns:
      the Application state
      See Also:
    • setState

      public void setState(String state)
    • getProfileId

      public Long getProfileId()
      Description copied from interface: IApplication
      Retrieves the identifier of the associated Profile or null if there is no profile is associated to this application.
      Specified by:
      getProfileId in interface IApplication
      Returns:
      the identifier of the associated Profile or null if there is no profile is associated to this application.
      See Also:
      • "org.bonitasoft.engine.profile.Profile"
    • setProfileId

      public void setProfileId(Long profileId)
    • hasIcon

      public boolean hasIcon()
      Description copied from interface: IApplication
      Indicate the presence or absence of an Icon for the Application that can be retrieved using org.bonitasoft.engine.api.ApplicationAPI#getIconOfApplication(long applicationId)
      Specified by:
      hasIcon in interface IApplication
      Returns:
      true if there is an icon for this application
      See Also:
    • setHasIcon

      public void setHasIcon(boolean hasIcon)
    • isEditable

      public boolean isEditable()
      Description copied from interface: IApplication
      Indicates whether the application can be modified
      Specified by:
      isEditable in interface IApplication
      Returns:
      Whether the application can be modified
    • setEditable

      public void setEditable(boolean editable)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class BaseElementImpl
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseElementImpl
    • toString

      public String toString()
      Overrides:
      toString in class BaseElementImpl