Gets the lockedOrientation value for this CustomCreative.

@return lockedOrientation   * A locked orientation for this creative to be displayed in.
488191
public com.google.api.ads.admanager.axis.v201902.LockedOrientation getLockedOrientation() {
        return lockedOrientation;
    }
113954
public boolean isVertical()
    {
        if (_orientVal == null) {
            boolean val = VERTICAL_VALUE.equalsIgnoreCase(_orientation);
            _orientVal = new Boolean(val);
        }
        return _orientVal.booleanValue();
    }
808223
@Override
	public String playOrientations() {
		StringBuilder s = new StringBuilder();

		// draw point group

		if ( rotationGroup.getPointGroup().equals("C1")) {
			s.append(drawFooter("Asymmetric", "white"));
		} else {
			s.append(drawFooter("Point group " + rotationGroup.getPointGroup(), "white"));
		}

		// draw polygon
		s.append(drawPolyhedron()); // draw invisibly
		s.append(showPolyhedron());

		// draw axes
		s.append(drawAxes());
		s.append(showAxes());

		// loop over all orientations with 4 sec. delay
		for (int i = 0; i < getOrientationCount(); i++) {
			s.append(deleteHeader());
			s.append(getOrientationWithZoom(i));
			s.append(drawHeader(polyhedron.getViewName(i), "white"));
			s.append("delay 4;");
		}

		// go back to first orientation
		s.append(deleteHeader());
		s.append(getOrientationWithZoom(0));
		s.append(drawHeader(polyhedron.getViewName(0), "white"));

		return s.toString();
	}
887357
public function HourOffset() {
      static $GuestHourOffset;
      
      if ($this->UserID > 0) {
         return $this->User->HourOffset;
      } else {
         if (!isset($GuestHourOffset)) {
            $GuestTimeZone = C('Garden.GuestTimeZone');
            if ($GuestTimeZone) {
               try {
                  $TimeZone = new DateTimeZone($GuestTimeZone);
                  $Offset = $TimeZone->getOffset(new DateTime('now', new DateTimeZone('UTC')));
                  $GuestHourOffset = floor($Offset / 3600);
               } catch (Exception $Ex) {
                  $GuestHourOffset = 0;
                  LogException($Ex);
               }
            }
         }
         
         return $GuestHourOffset;
      }
   }
825155
@Override
	public LockingStrategy getLockingStrategy(Lockable lockable, LockMode lockMode) {
		return gridDialect.getLockingStrategy( lockable, lockMode );
	}
724292
public function isLockedOut()
    {
        /** @var DBDatetime $lockedOutUntilObj */
        $lockedOutUntilObj = $this->dbObject('LockedOutUntil');
        if ($lockedOutUntilObj->InFuture()) {
            return true;
        }

        $maxAttempts = $this->config()->get('lock_out_after_incorrect_logins');
        if ($maxAttempts <= 0) {
            return false;
        }

        $idField = static::config()->get('unique_identifier_field');
        $attempts = LoginAttempt::getByEmail($this->{$idField})
            ->sort('Created', 'DESC')
            ->limit($maxAttempts);

        if ($attempts->count() < $maxAttempts) {
            return false;
        }

        foreach ($attempts as $attempt) {
            if ($attempt->Status === 'Success') {
                return false;
            }
        }

        // Calculate effective LockedOutUntil
        /** @var DBDatetime $firstFailureDate */
        $firstFailureDate = $attempts->first()->dbObject('Created');
        $maxAgeSeconds = $this->config()->get('lock_out_delay_mins') * 60;
        $lockedOutUntil = $firstFailureDate->getTimestamp() + $maxAgeSeconds;
        $now = DBDatetime::now()->getTimestamp();
        if ($now < $lockedOutUntil) {
            return true;
        }

        return false;
    }
508308
@SuppressWarnings("unused")
    public Handedness getHandedness()
    {
        if ((currentControllerEvent == null) || currentControllerEvent.isRecycled())
        {
            return null;
        }
        return currentControllerEvent.handedness == 0.0f ?
                Handedness.LEFT : Handedness.RIGHT;
    }
234030
@Override
	public String playOrientations() {
		StringBuilder s = new StringBuilder();

		// draw footer
		s.append(drawFooter("Symmetry Helical", "white"));

		// draw polygon
		s.append(drawPolyhedron()); // draw invisibly
		s.append(showPolyhedron());

		// draw axes
		s.append(drawAxes());
		s.append(showAxes());

		// loop over all orientations with 4 sec. delay
		for (int i = 0; i < getOrientationCount(); i++) {
			s.append(deleteHeader());
			s.append(getOrientationWithZoom(i));
			s.append(drawHeader(getOrientationName(i), "white"));
			s.append("delay 4;");
		}

		// go back to first orientation
		s.append(deleteHeader());
		s.append(getOrientationWithZoom(0));
		s.append(drawHeader(getOrientationName(0), "white"));

		return s.toString();
	}
277001
private AffineTransform getAlignmentTransform() {
        final int offsetX;
        switch (this.settings.getParams().getAlign()) {
            case LEFT:
                offsetX = 0;
                break;
            case RIGHT:
                offsetX = this.settings.getMaxSize().width - this.settings.getSize().width;
                break;
            case CENTER:
            default:
                offsetX = (int) Math
                        .floor(this.settings.getMaxSize().width / 2.0 - this.settings.getSize().width / 2.0);
                break;
        }

        final int offsetY;
        switch (this.settings.getParams().getVerticalAlign()) {
            case TOP:
                offsetY = 0;
                break;
            case BOTTOM:
                offsetY = this.settings.getMaxSize().height - this.settings.getSize().height;
                break;
            case MIDDLE:
            default:
                offsetY = (int) Math.floor(this.settings.getMaxSize().height / 2.0 -
                                                   this.settings.getSize().height / 2.0);
                break;
        }

        return AffineTransform.getTranslateInstance(Math.round(offsetX), Math.round(offsetY));
    }
609062
protected static String getOrientation(Context ctx) {
        try {
            String o;
            switch (ctx.getResources().getConfiguration().orientation) {
                case android.content.res.Configuration.ORIENTATION_LANDSCAPE:
                    o = "landscape";
                    break;
                case android.content.res.Configuration.ORIENTATION_PORTRAIT:
                    o = "portrait";
                    break;
                default:
                    o = null;
                    break;
            }
            return o;
        } catch (Exception e) {
            Log.e(TAG, "Error getting device orientation.", e);
            return null;
        }
    }
221469
public float[] getScaleOrientation() {
        float[] _scaleOrientation = {this.scaleOrientation.angle, this.scaleOrientation.x, this.scaleOrientation.y, this.scaleOrientation.z};
        return _scaleOrientation;
    }
1357878
public String getLockedByName() {

        String lockedBy = "";
        if (!getLock().isNullLock()) {
            // user
            lockedBy = getLock().getUserId().toString();
            try {
                lockedBy = getCurrentOuRelativeName(
                    CmsPrincipal.readPrincipalIncludingHistory(getCms(), getLock().getUserId()).getName());
            } catch (Throwable e) {
                lockedBy = e.getMessage();
            }
        }
        return lockedBy;
    }
449730
public PolygonOrientation getOrientation(List<LatLng> points) {
        return SphericalUtil.computeSignedArea(points) >= 0 ? PolygonOrientation.COUNTERCLOCKWISE : PolygonOrientation.CLOCKWISE;
    }
1258934
public function getLocker()
    {
        $user = null;

        if($this->hasProperty('locked_by') && !empty($this->locked_by)) {
            $user = $this->getObject('user.provider')->load($this->locked_by);
        }

        return $user;
    }
231925
public int getLockState() {

        if (CmsStringUtil.isEmptyOrWhitespaceOnly(getLockedByName())) {
            // unlocked
            return 0;
        }
        if (!getLockedByName().equals(getCurrentOuRelativeName(m_request.getCurrentUser().getName()))
            || !getLockedInProjectId().equals(m_request.getCurrentProject().getUuid())) {
            // locked by other user and/or project
            return 1;
        }
        if (getLock().getType().isShared()) {
            // shared lock
            return 2;
        }
        // exclusive lock
        return 3;
    }
1066722
public Point2D getEventAdjusted()
    {
        final Point2D viewportLoc = new Point2D(getEventX(), getEventY());

        m_vtog.transform(viewportLoc, viewportLoc);

        return viewportLoc;
    }
915538
public static synchronized org.apache.ojb.odmg.locking.LockManager getLockManager()
    {
        if(lockManagerFactory == null)
        {
            lockManagerFactory = new LockManagerFactory();
        }
        return lockManagerFactory.getManager();
    }